verify_rib,
create_static_routes,
step,
- topo_daemons,
)
from lib.topolog import logger
from lib.topojson import build_config_from_json
topo = tgen.json_topo
# ... and here it calls Mininet initialization functions.
- # get list of daemons needs to be started for this suite.
- daemons = topo_daemons(tgen, topo)
-
# Starting topology, create tmp files which are loaded to routers
- # to start deamons and then start routers
- start_topology(tgen, daemons)
+ # to start daemons and then start routers
+ start_topology(tgen)
# Creating configuration from JSON
build_config_from_json(tgen, topo)
step("Verify that show ip ospf summary should show the summaries.")
input_dict = {
SUMMARY["ipv4"][3]: {
- "Summary address": SUMMARY["ipv4"][3],
- "Metric-type": "E2",
- "Metric": 20,
- "Tag": 0,
- "External route count": 5,
+ "summaryAddress": SUMMARY["ipv4"][3],
+ "metricType": "E2",
+ "metric": 20,
+ "tag": 0,
+ "externalRouteCount": 5,
}
}
dut = "r0"
step("Verify that type7 LSAs received from neighbor are not summarised.")
input_dict = {
"13.0.0.0/8": {
- "Summary address": "13.0.0.0/8",
- "Metric-type": "E2",
- "Metric": 20,
- "Tag": 0,
- "External route count": 0,
+ "summaryAddress": "13.0.0.0/8",
+ "metricType": "E2",
+ "metric": 20,
+ "tag": 0,
+ "externalRouteCount": 0,
}
}
dut = "r0"
step("Verify that already originated summary is intact.")
input_dict = {
SUMMARY["ipv4"][3]: {
- "Summary address": SUMMARY["ipv4"][3],
- "Metric-type": "E2",
- "Metric": 20,
- "Tag": 0,
- "External route count": 5,
+ "summaryAddress": SUMMARY["ipv4"][3],
+ "metricType": "E2",
+ "metric": 20,
+ "tag": 0,
+ "externalRouteCount": 5,
}
}
dut = "r0"