Skip to content
Snippets Groups Projects
Commit ada7bc3e authored by Erik Reid's avatar Erik Reid
Browse files

pep8

parent aaa4414e
No related branches found
No related tags found
No related merge requests found
......@@ -1466,8 +1466,10 @@ def _load_ip_services():
assert m # sanity
equipment = m.group(1)
port = m.group(2)
assert all([_s['equipment'] == equipment for _s in doc['value']]) # sanity
assert all([_s['port'] == port for _s in doc['value']]) # sanity
assert all([_s['equipment'] == equipment
for _s in doc['value']]) # sanity
assert all([_s['port'] == port
for _s in doc['value']]) # sanity
hostname = ims_equipment_to_hostname(equipment)
ims_interface_services[f'{hostname}:{port.lower()}'] = doc['value']
......@@ -1497,13 +1499,10 @@ def _load_ip_services():
def _merged_result():
for key, ifc in netconf_interfaces.items():
# for _s in map(_service_info, ims_interface_services.get(key, [])):
_services1 = list(map(_service_info, ims_interface_services.get(key, [])))
_services = list(_dedupe(_services1))
if len(_services) != len(_services1):
print('here')
if len(_services) > 1:
print('here')
_services = map(
_service_info,
ims_interface_services.get(key, []))
_services = list(_dedupe(_services))
for address in ifc['ipv4'] + ifc['ipv6']:
try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment