Skip to content
Snippets Groups Projects
Commit 5af474ca authored by Aleksandr Kurbatov's avatar Aleksandr Kurbatov
Browse files

Exclude provisioning routers from the inventory calculations in P-to-PE

parent 13016dbb
No related branches found
No related tags found
1 merge request!338Draft: Exclude provisioning routers from the inventory calculations in P-to-PE
Pipeline #91209 failed
...@@ -52,7 +52,7 @@ def _update_sdp_mesh( ...@@ -52,7 +52,7 @@ def _update_sdp_mesh(
dry_run: bool, dry_run: bool,
) -> LSOState: ) -> LSOState:
inventory = generate_inventory_for_routers( inventory = generate_inventory_for_routers(
router_role=RouterRole.PE, router_vendor=Vendor.NOKIA, exclude_routers=[subscription["router"]["router_fqdn"]] router_role=RouterRole.PE, router_vendor=Vendor.NOKIA, exclude_routers=[subscription["router"]["router_fqdn"]], include_provisioning_routers=False
) )
extra_vars = { extra_vars = {
...@@ -149,7 +149,7 @@ def _add_pe_to_pe_mesh( ...@@ -149,7 +149,7 @@ def _add_pe_to_pe_mesh(
dry_run: bool, dry_run: bool,
) -> LSOState: ) -> LSOState:
inventory = generate_inventory_for_routers( inventory = generate_inventory_for_routers(
router_role=RouterRole.PE, exclude_routers=[subscription["router"]["router_fqdn"]] router_role=RouterRole.PE, exclude_routers=[subscription["router"]["router_fqdn"]], include_provisioning_routers=False
) )
extra_vars = { extra_vars = {
"dry_run": dry_run, "dry_run": dry_run,
......
...@@ -135,7 +135,7 @@ def remove_p_from_pe_dry(subscription: dict[str, Any], tt_number: str, process_i ...@@ -135,7 +135,7 @@ def remove_p_from_pe_dry(subscription: dict[str, Any], tt_number: str, process_i
return { return {
"playbook_name": "gap_ansible/playbooks/update_ibgp_mesh.yaml", "playbook_name": "gap_ansible/playbooks/update_ibgp_mesh.yaml",
"inventory": generate_inventory_for_routers(RouterRole.PE), "inventory": generate_inventory_for_routers(RouterRole.PE, include_provisioning_routers=False),
"extra_vars": extra_vars, "extra_vars": extra_vars,
} }
...@@ -153,7 +153,7 @@ def remove_p_from_pe_real(subscription: dict[str, Any], tt_number: str, process_ ...@@ -153,7 +153,7 @@ def remove_p_from_pe_real(subscription: dict[str, Any], tt_number: str, process_
return { return {
"playbook_name": "gap_ansible/playbooks/update_ibgp_mesh.yaml", "playbook_name": "gap_ansible/playbooks/update_ibgp_mesh.yaml",
"inventory": generate_inventory_for_routers(RouterRole.PE), "inventory": generate_inventory_for_routers(RouterRole.PE, include_provisioning_routers=False),
"extra_vars": extra_vars, "extra_vars": extra_vars,
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment