Commit d1cd78a4 authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Merge branch 'fix-alstec-24xx-not-supported-command' into 'master'

Alstec.24xx.get_interfaces. Catch not supported 'show port description' command.

See merge request noc/noc!6045
parents 2c218c41 f57436d2
......@@ -69,7 +69,11 @@ class Script(BaseScript):
for ifname in list(sorted(interfaces, reverse=True, key=alnum_key))[:3]:
v = self.cli("show port description %s" % ifname)
v = self.cli("show port description %s" % ifname)
except self.CLISyntaxError:
self.logger.error("'show port description' is not supported")
if not v:
r = parse_kv(self.description_map, v, sep=".")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment