From 9788046c642da582c5d35cf1714f264bcd85862a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Walstr=C3=B6m?= Date: Sat, 13 Jan 2024 20:44:52 +0100 Subject: [PATCH] OSPF: Add area-type to operational --- board/netconf/rootfs/libexec/infix/yanger | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/board/netconf/rootfs/libexec/infix/yanger b/board/netconf/rootfs/libexec/infix/yanger index 9b64d455..142e0773 100755 --- a/board/netconf/rootfs/libexec/infix/yanger +++ b/board/netconf/rootfs/libexec/infix/yanger @@ -234,8 +234,10 @@ def add_ospf(ospf): area={} area["ietf-ospf:area-id"] = area_id area["ietf-ospf:interfaces"] = {} + if values.get("area-type"): + area["ietf-ospf:area-type"] = values["area-type"] interfaces=[] - for iface in values["interfaces"]: + for iface in values.get("interfaces", {}): interface={} interface["ietf-ospf:neighbors"] = {} interface["name"]=iface["name"]