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

filtered out duplicate services

parent 1e3d6c25
No related branches found
No related tags found
No related merge requests found
......@@ -582,17 +582,17 @@ def update_interfaces_to_services(self, use_current=False):
s['other_end_equipment'] = ''
s['other_end_port'] = ''
s['other_end_card_d'] = '' # this is redundant I believe
s['other_end_logical_unit'] = '' # this is redundant I believe
s['manufacturer'] = '' # this is redundant I believe
s.pop('port_a_id', None)
s.pop('port_b_id', None)
for port_info in port_id_details.values():
service_ids = set()
services = []
for service in port_id_services[port_info['port_id']]:
_format_service(service)
services.append(service)
if service['id'] not in service_ids:
_format_service(service)
services.append(service)
service_ids.add(service['id'])
rp.set(
f'ims:interface_services:{port_info["equipment_name"]}:'
......
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