VOL-1161 Onu indication should not change admin state
Change-Id: I449d787a6ec0e53d194fcfdc8736ac09084139e5
diff --git a/voltha/adapters/openolt/openolt_device.py b/voltha/adapters/openolt/openolt_device.py
index 3187975..c8bd97f 100644
--- a/voltha/adapters/openolt/openolt_device.py
+++ b/voltha/adapters/openolt/openolt_device.py
@@ -477,20 +477,10 @@
# Forcing the oper state change code to execute
onu_indication.oper_state = 'down'
- if onu_device.admin_state != AdminState.DISABLED:
- onu_device.admin_state = AdminState.DISABLED
- self.adapter_agent.update(onu_device)
- self.log.debug('putting-onu-in-disabled-state',
- onu_serial_number=onu_device.serial_number)
-
# Port and logical port update is taken care of by oper state block
elif onu_indication.admin_state == 'up':
- if onu_device.admin_state != AdminState.ENABLED:
- onu_device.admin_state = AdminState.ENABLED
- self.adapter_agent.update(onu_device)
- self.log.debug('putting-onu-in-enabled-state',
- onu_serial_number=onu_device.serial_number)
+ pass
else:
self.log.warn('Invalid-or-not-implemented-admin-state',