mirror of
				https://github.com/checktheroads/hyperglass
				synced 2024-05-11 05:55:08 +00:00 
			
		
		
		
	🔥 remove commented code
This commit is contained in:
		@@ -143,48 +143,3 @@ net = Networks()
 | 
			
		||||
networks = net.networks_verbose()
 | 
			
		||||
logger.debug(networks)
 | 
			
		||||
display_networks = net.networks_display()
 | 
			
		||||
 | 
			
		||||
# def networks():
 | 
			
		||||
#     locations_dict = {}
 | 
			
		||||
#     for (router, router_params) in devices.routers.items():
 | 
			
		||||
#         for (netname, net_params) in _networks.networks.items():
 | 
			
		||||
#             if router_params["network"] == netname:
 | 
			
		||||
#                 net_display = net_params["display_name"]
 | 
			
		||||
#                 if net_display in locations_dict:
 | 
			
		||||
#                     locations_dict[net_display].append(
 | 
			
		||||
#                         {
 | 
			
		||||
#                             "location": router_params["location"],
 | 
			
		||||
#                             "hostname": router,
 | 
			
		||||
#                             "display_name": router_params["display_name"],
 | 
			
		||||
#                         }
 | 
			
		||||
#                     )
 | 
			
		||||
#                 elif net_display not in locations_dict:
 | 
			
		||||
#                     locations_dict[net_display] = [
 | 
			
		||||
#                         {
 | 
			
		||||
#                             "location": router_params["location"],
 | 
			
		||||
#                             "hostname": router,
 | 
			
		||||
#                             "display_name": router_params["display_name"],
 | 
			
		||||
#                         }
 | 
			
		||||
#                     ]
 | 
			
		||||
#     if not locations_dict:
 | 
			
		||||
#         raise ConfigError("Unable to build network to device mapping")
 | 
			
		||||
#     return locations_dict
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# def display_networks():
 | 
			
		||||
#     locations_dict = {}
 | 
			
		||||
#     for (router, router_params) in devices.routers.items():
 | 
			
		||||
#         for (netname, net_params) in _networks.networks.items():
 | 
			
		||||
#             if router_params["network"] == netname:
 | 
			
		||||
#                 net_display = net_params["display_name"]
 | 
			
		||||
#                 if net_display in locations_dict:
 | 
			
		||||
#                     locations_dict[net_display].append(router_params["display_name"])
 | 
			
		||||
#                 elif net_display not in locations_dict:
 | 
			
		||||
#                     locations_dict[net_display] = [router_params["display_name"]]
 | 
			
		||||
#     if not locations_dict:
 | 
			
		||||
#         raise ConfigError("Unable to build network to device mapping")
 | 
			
		||||
#     return locations_dict
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# networks = networks()
 | 
			
		||||
# display_networks = display_networks()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user