mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-03 14:23:02 +02:00
OSPF: Add area-type to operational
This commit is contained in:
committed by
Joachim Wiberg
parent
c906236be5
commit
9788046c64
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user