🔥 remove commented code

This commit is contained in:
checktheroads 2019-08-14 09:34:38 -07:00
parent 45cff68ac9
commit 3f6d451d52
5 changed files with 0 additions and 98 deletions

View file

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long