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

qfx* & gts* shold be internal

parent c36da748
No related branches found
No related tags found
No related merge requests found
......@@ -414,15 +414,20 @@ WHERE
"""
def _public(row):
# cf. LGR-73
if row['pop_name'] in INTERNAL_POP_NAMES:
return False
if row['router_name'].startswith('sw'):
router_name_lower = row['router_name'].lower()
if any(router_name_lower.startswith(prefix)
for prefix in ['srx', 'gts', 'sw', 'qfx']):
return False
if row['pop_city'].lower() == 'slough' \
and not row['equipment_model'].upper().startswith('MX'):
return False
if row['router_name'].startswith('srx'):
return False
return True
def _row2rsp(row):
......
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