From b469a6a2603cb3902e0f5255dd4c70fa3de231cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Walstr=C3=B6m?= Date: Wed, 10 Jan 2024 09:08:20 +0100 Subject: [PATCH] OSPF: Add passive interface and interface type to operational --- board/netconf/rootfs/libexec/infix/yanger | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/board/netconf/rootfs/libexec/infix/yanger b/board/netconf/rootfs/libexec/infix/yanger index a1f0fb27..9b64d455 100755 --- a/board/netconf/rootfs/libexec/infix/yanger +++ b/board/netconf/rootfs/libexec/infix/yanger @@ -247,6 +247,15 @@ def add_ospf(ospf): interface["bdr-router-id"]=iface["bdrId"] if(iface.get("bdrAddress")): interface["bdr-ip-addr"]=iface["bdrAddress"] + if(iface.get("timerPassiveIface")): + interface["passive"] = True + else: + interface["passive"] = False + interface["enabled"] = iface["ospfEnabled"] + if(iface["networkType"] == "POINTOPOINT"): + interface["interface-type"] = "point-to-point" + if(iface["networkType"] == "BROADCAST"): + interface["interface-type"] = "broadcast" neighbors = [] for neigh in iface["neighbors"]: