make show interfaces parser portchannel compatible
This commit is contained in:
1 file changed
+3
@@ -389,6 +389,9 @@ class S350Driver(NetworkDriver):
|
|||||||
|
|
||||||
for status_line in show_status_output.splitlines():
|
for status_line in show_status_output.splitlines():
|
||||||
if 'Up' in status_line or 'Down' in status_line:
|
if 'Up' in status_line or 'Down' in status_line:
|
||||||
|
if "Po" in status_line:
|
||||||
|
interface, _, _, speed, _, _, link_state = status_line.split()
|
||||||
|
else:
|
||||||
interface, _, _, speed, _, _, link_state, _, _ = status_line.split()
|
interface, _, _, speed, _, _, link_state, _, _ = status_line.split()
|
||||||
|
|
||||||
# Since the MAC address for all the local ports are equal, get the address
|
# Since the MAC address for all the local ports are equal, get the address
|
||||||
|
|||||||
Reference in new issue
Block a user