From 66f0e07e5e9a136e5a2e19dc9e5d6a1e4b3e9ffb Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 6 May 2020 21:22:46 +0500 Subject: [PATCH] Huawei.MA5600T.get_interfaces. Add interface hints field. --- sa/profiles/Huawei/MA5600T/get_interfaces.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sa/profiles/Huawei/MA5600T/get_interfaces.py b/sa/profiles/Huawei/MA5600T/get_interfaces.py index 88159dec3d..8e258dd855 100644 --- a/sa/profiles/Huawei/MA5600T/get_interfaces.py +++ b/sa/profiles/Huawei/MA5600T/get_interfaces.py @@ -333,6 +333,7 @@ class Script(BaseScript): "oper_status": oper_status, "snmp_ifindex": ifindex, "enabled_protocols": [], + "hints": ["uplink"], "subinterfaces": [ { "name": ifname, @@ -374,8 +375,10 @@ class Script(BaseScript): for p_name, p in ports.items(): if self.is_gpon_uplink: ifindex = self.snmp_index("XG-PON", 0, slot, int(p["num"])) + hints = ["uplink"] else: ifindex = self.snmp_index("GPON", 0, slot, int(p["num"])) + hints = [] # ifname = "0/%d/%d" % (i, int(p["num"])) interfaces[p_name] = { "name": p_name, @@ -383,6 +386,7 @@ class Script(BaseScript): "snmp_ifindex": ifindex, "admin_status": True, "oper_status": p["state"], + "hints": hints, "subinterfaces": [ { "name": p_name, -- GitLab