Network check HTML report
- uniform map generation
- POC for additional checks on env
Change-Id: I52edcc94f4d9826cbfb1159e5311514097a15f62
Related-PROD: PROD-32792
diff --git a/cfg_checker/modules/network/checker.py b/cfg_checker/modules/network/checker.py
index 89db6ba..acd3bb1 100644
--- a/cfg_checker/modules/network/checker.py
+++ b/cfg_checker/modules/network/checker.py
@@ -10,11 +10,13 @@
self.errors = NetworkErrors()
self.mapper = NetworkMapper(self.errors)
- def check_networks(self):
+ def check_networks(self, map=True):
self.mapper.map_network(self.mapper.RECLASS)
self.mapper.map_network(self.mapper.RUNTIME)
- self.mapper.print_map()
+ self.mapper.create_map()
+ if map:
+ self.mapper.print_map()
def print_summary(self):
logger_cli.info(self.errors.get_summary(print_zeros=False))
@@ -39,10 +41,10 @@
filename
)
_report({
- "nodes": self.nodes,
- "network": {},
- "mcp_release": self.mcp_release,
- "openstack_release": self.openstack_release
+ "nodes": self.mapper.nodes,
+ "map": self.mapper.map,
+ "mcp_release": self.mapper.cluster['mcp_release'],
+ "openstack_release": self.mapper.cluster['openstack_release']
})
logger_cli.info("-> Done")