Merge pull request #60 from napalm-automation-community/f-sg300-portchannel

Fix show interfaces parsing
This commit is contained in:
Petr Klíma authored and GitHub committed 2020-11-18 11:57:53 +01:00
commit 9ce9af6e37
6 files changed
+175 -1

No files matched your search

+4 -1
View File
@@ -408,7 +408,10 @@ class S350Driver(NetworkDriver):
for status_line in show_status_output.splitlines():
if 'Up' in status_line or 'Down' in status_line:
interface, _, _, speed, _, _, link_state, _, _ = status_line.split()
if "Po" in status_line:
interface, _, _, speed, _, _, link_state = status_line.split()
else:
interface, _, _, speed, _, _, link_state, _, _ = status_line.split()
# Since the MAC address for all the local ports are equal, get the address
# from the first port and use it everywhere.