Skip to content
Snippets Groups Projects
Commit f1c7efc7 authored by Robert Latta's avatar Robert Latta
Browse files

Added services on lus to parent ae port

parent 40a335ab
No related branches found
No related tags found
No related merge requests found
......@@ -179,6 +179,14 @@ def update_interfaces_to_services():
service["interface_name"]
)
mapped_interfaces[key].append(service)
# Puts lu services under the parent ae as well as their own interface
# eg. services on ae15.12 would be found under ae15 as well as ae15.12
if "." in service["interface_name"]:
key = "{}::{}".format(
service["equipment"],
service["interface_name"].split(".")[0]
)
mapped_interfaces[key].append(service)
r.delete(interfaces_key)
for key, value in mapped_interfaces.items():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment