Skip to content

Commit 4943848

Browse files
authored
Merge pull request #931 from beufanet/nx-os-xcvr-interface
fix(suzieq/poller/worker/services/interfaces.py): change xcvr unsupported adminState for NX-OS
2 parents 07d7355 + 5b2c1a5 commit 4943848

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

suzieq/poller/worker/services/interfaces.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -669,10 +669,13 @@ def fix_nxos_speed(entry):
669669
if entry['reason'] == 'none' or not entry['reason']:
670670
entry['reason'] = ''
671671

672-
if entry['reason'] in ["link not connected",
673-
"xcvr not inserted"]:
672+
if entry['reason'] == "link not connected":
674673
entry['state'] = 'notConnected'
675674

675+
if entry['reason'] == "xcvr not inserted":
676+
entry['state'] = 'notConnected'
677+
entry['adminState'] = 'down'
678+
676679
if entry.get('reason', '') == 'administratively down':
677680
entry['adminState'] = 'down'
678681
else:

0 commit comments

Comments
 (0)