From 20d7dacb3e5d8045662e81c6237355f0663d4023 Mon Sep 17 00:00:00 2001 From: Andrey Vertiprahov Date: Thu, 13 Jan 2022 10:14:39 +0500 Subject: [PATCH] Jnuiper.JUNOS. Fix detect aggregate interface on SNMP. --- sa/profiles/Generic/get_interfaces.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sa/profiles/Generic/get_interfaces.py b/sa/profiles/Generic/get_interfaces.py index ec26376830..698551a433 100644 --- a/sa/profiles/Generic/get_interfaces.py +++ b/sa/profiles/Generic/get_interfaces.py @@ -295,6 +295,10 @@ class Script(BaseScript): if ifindex in ips: sub["enabled_afi"] = ["IPv4"] sub["ipv4_addresses"] = [IPv4(*i) for i in ips[ifindex]] + if ifindex in portchannels: + # For Juniper Aggregated Interface use unit - '.0' ifindex + interfaces[ifname]["aggregated_interface"] = ifaces[portchannels[ifindex]]["name"] + interfaces[ifname]["enabled_protocols"] = ["LACP"] if num.isdigit(): vlan_ids = int(sub["name"].rsplit(".", 1)[-1]) if is_vlan(vlan_ids): -- GitLab