We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 07d7355 + 5b2c1a5 commit 4943848Copy full SHA for 4943848
suzieq/poller/worker/services/interfaces.py
@@ -669,10 +669,13 @@ def fix_nxos_speed(entry):
669
if entry['reason'] == 'none' or not entry['reason']:
670
entry['reason'] = ''
671
672
- if entry['reason'] in ["link not connected",
673
- "xcvr not inserted"]:
+ if entry['reason'] == "link not connected":
674
entry['state'] = 'notConnected'
675
+ if entry['reason'] == "xcvr not inserted":
676
+ entry['state'] = 'notConnected'
677
+ entry['adminState'] = 'down'
678
+
679
if entry.get('reason', '') == 'administratively down':
680
entry['adminState'] = 'down'
681
else:
0 commit comments