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.
birdvisu/snippets/test_diff.py

14 lines
319 B
Python

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))