diff --git a/board/netconf/rootfs/libexec/infix/yanger b/board/netconf/rootfs/libexec/infix/yanger index c8787e5f..e0083a9f 100755 --- a/board/netconf/rootfs/libexec/infix/yanger +++ b/board/netconf/rootfs/libexec/infix/yanger @@ -259,6 +259,20 @@ def add_ospf(ospf): if(iface["networkType"] == "BROADCAST"): interface["interface-type"] = "broadcast" + if iface.get("state"): + map = { + "DependUpon": "down", # Do not know what this is, never seen it and no entry in yang, but it listed before down in list in frr + "Down": "down", + "Waiting": "waiting", + "Loopback": "loopback", + "Point-To-Point": "point-to-point", + "DROther": "dr-other", + "Backup": "bdr", + "DR": "dr" + } + val = map.get(iface["state"], "unknown") + interface["state"] = val + neighbors = [] for neigh in iface["neighbors"]: neighbor={} diff --git a/src/confd/yang/infix-routing@2024-01-09.yang b/src/confd/yang/infix-routing@2024-01-09.yang index 6ac93d71..6365d2b9 100644 --- a/src/confd/yang/infix-routing@2024-01-09.yang +++ b/src/confd/yang/infix-routing@2024-01-09.yang @@ -385,10 +385,6 @@ module infix-routing { { deviate not-supported; } - deviation "/ietf-r:routing/ietf-r:control-plane-protocols/ietf-r:control-plane-protocol/ospf:ospf/ospf:areas/ospf:area/ospf:interfaces/ospf:interface/ospf:state" - { - deviate not-supported; - } deviation "/ietf-r:routing/ietf-r:control-plane-protocols/ietf-r:control-plane-protocol/ospf:ospf/ospf:areas/ospf:area/ospf:interfaces/ospf:interface/ospf:hello-timer" { deviate not-supported;