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

remove junosspace and make srx* INTERNAL

parent 7d31f3ad
No related branches found
No related tags found
No related merge requests found
......@@ -410,7 +410,7 @@ WHERE
e.manufacturer = 'Juniper'
AND e.status = 'Operational'
AND o.name = 'DANTE / GEANT'
AND NOT (e.name REGEXP 'vpn-proxy|vrr|taas')
AND NOT (e.name REGEXP 'vpn-proxy|vrr|taas|junosspace')
"""
def _public(row):
......@@ -421,6 +421,8 @@ WHERE
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):
......
......@@ -291,6 +291,13 @@ def test_lookup_lg_routers(connection, cached_test_data):
lambda r: r['equipment name'].startswith('sw'), routers)
assert all(s['type'] == 'INTERNAL' for s in switches)
assert not any(
r['equipment name'].lower().startswith('junosspace') for r in routers)
srx = filter(
lambda r: r['equipment name'].lower().startswith('srx'), routers)
assert all(s['type'] == 'INTERNAL' for s in srx)
CIRCUIT_INFO_SCHEMA = {
"$schema": "http://json-schema.org/draft-07/schema#",
......
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