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

added check for key

parent 4562c974
No related branches found
No related tags found
No related merge requests found
......@@ -146,6 +146,17 @@ def get_top_level_services(circuit_id: str, r: Redis) -> List[dict]:
results = json.loads(results.decode('utf-8'))
def _is_tls(candidate):
if 'circuit-type' in candidate:
if candidate['product'] == 'IP PEERING - NON R&E (PUBLIC)':
return False
if candidate['circuit-type'] == 'service':
return True
if candidate['speed'] == 'BGP':
return True
# this will be obsolete as soon as Inventory Provider
# update is done, but is here for between the time of the roll out
# and the Inventory Update
tls_names = copy(IMS_SERVICE_NAMES)
# whilst this is a service type the top level for reporting
......
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