Skip to content
Snippets Groups Projects
Commit 7d71dff1 authored by Saket Agrahari's avatar Saket Agrahari
Browse files

retrun only inservice router to lg

parent 5098d204
Branches
Tags
No related merge requests found
......@@ -437,7 +437,8 @@ def lookup_lg_routers(ds: IMS):
pattern = re.compile("vpn-proxy|vrr|taas", re.IGNORECASE)
def _matching_node(node_):
if InventoryStatus(node_['inventorystatusid']) in STATUSES_TO_IGNORE:
# [LG-46]
if InventoryStatus(node_['inventorystatusid']) != InventoryStatus.IN_SERVICE.value:
return False
if pattern.match(node_['name']):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment