mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-01 05:13:01 +02:00
OSPF: Add passive interface and interface type to operational
This commit is contained in:
committed by
Joachim Wiberg
parent
72dc0f87f5
commit
b469a6a260
@@ -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"]:
|
||||
|
||||
Reference in New Issue
Block a user