You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
319 B
Python
14 lines
319 B
Python
2 years ago
|
from birdvisu import maps
|
||
|
|
||
|
with open('current.ospf') as actual:
|
||
|
act_topo = maps.Topology.from_ospffile(actual)
|
||
|
with open('reference.ospf') as reference:
|
||
|
ref_topo = maps.Topology.from_ospffile(reference)
|
||
|
|
||
|
diff = maps.TopologyDifference(act_topo, ref_topo)
|
||
|
diff.compare()
|
||
|
|
||
|
from pprint import pprint
|
||
|
|
||
|
pprint(vars(diff))
|