commit | 4587665ade7e8cfe3294e6f169f9953751e32c79 | [log] [tgz] |
---|---|---|
author | Matteo Scandolo <teo@opennetworking.org> | Tue Oct 16 16:03:17 2018 -0700 |
committer | Matteo Scandolo <teo@opennetworking.org> | Tue Oct 16 16:48:34 2018 -0700 |
tree | 8d5f32ad77f8ddead86735891a4e8964dbefdeaa | |
parent | b9ae26895a760c11c836914aefea9380ab13c2c6 [diff] [blame] |
Read device serial_number as soon as the device is activated Change-Id: Idedfb2060fb174c068a26e24ae982b18ffc51226
diff --git a/xos/synchronizer/steps/sync_olt_device.py b/xos/synchronizer/steps/sync_olt_device.py index 1140173..4646dbd 100644 --- a/xos/synchronizer/steps/sync_olt_device.py +++ b/xos/synchronizer/steps/sync_olt_device.py
@@ -116,6 +116,7 @@ model.admin_state = request['admin_state'] model.oper_status = request['oper_status'] + model.serial_number = request['serial_number'] if model.oper_status != "ACTIVE": raise Exception("It was not possible to activate OLTDevice with id %s" % model.id)