From f0b360aa256165cbfcede2b58a104d627e00f07f Mon Sep 17 00:00:00 2001 From: Daniel Bacher Date: Mon, 16 Nov 2020 10:46:54 +0100 Subject: [PATCH] make show interfaces parser portchannel compatible --- napalm_s350/s350.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/napalm_s350/s350.py b/napalm_s350/s350.py index 2c85b0a..9b3e365 100644 --- a/napalm_s350/s350.py +++ b/napalm_s350/s350.py @@ -389,7 +389,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.