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

Merge branch 'fix_get_interfaces_Qtech.QSW8200' into 'master'

fix_get_interfaces - port-channel no has iftype

See merge request noc/noc!3298
parents dcf48f19 1cb6db60
......@@ -2,7 +2,7 @@
# ---------------------------------------------------------------------
# Qtech.QSW8200.get_interfaces
# ---------------------------------------------------------------------
# Copyright (C) 2007-2019 The NOC Project
# Copyright (C) 2007-2020 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
......@@ -82,6 +82,8 @@ class Script(BaseScript):
iface["type"] = "loopback"
elif ifname.startswith("NULL"): # NULL has iftype `unknown`
iface["type"] = "null"
elif ifname.startswith("port-channel"): # port-channel no has iftype
iface["type"] = "aggregated"
else:
iface["type"] = self.profile.get_interface_type(ifname)
iface["mac"] = match.group("mac")
......
Supports Markdown
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