Skip to content
Snippets Groups Projects
Verified Commit 95805e02 authored by Karel van Klink's avatar Karel van Klink :smiley_cat:
Browse files

add verbs to playbook steps in iBGP workflow

parent 570e732c
No related branches found
No related tags found
1 merge request!126Add iBGP workflow and LibreNMS client
...@@ -82,6 +82,7 @@ def add_p_to_mesh_dry( ...@@ -82,6 +82,7 @@ def add_p_to_mesh_dry(
"dry_run": True, "dry_run": True,
"subscription": subscription, "subscription": subscription,
"commit_comment": f"GSO_PROCESS_ID: {process_id} - TT_NUMBER: {tt_number} - Update iBGP mesh", "commit_comment": f"GSO_PROCESS_ID: {process_id} - TT_NUMBER: {tt_number} - Update iBGP mesh",
"verb": "add_p_to_pe",
} }
provisioning_proxy.execute_playbook( provisioning_proxy.execute_playbook(
...@@ -101,6 +102,7 @@ def add_p_to_mesh_real( ...@@ -101,6 +102,7 @@ def add_p_to_mesh_real(
"dry_run": False, "dry_run": False,
"subscription": subscription, "subscription": subscription,
"commit_comment": f"GSO_PROCESS_ID: {process_id} - TT_NUMBER: {tt_number} - Update iBGP mesh", "commit_comment": f"GSO_PROCESS_ID: {process_id} - TT_NUMBER: {tt_number} - Update iBGP mesh",
"verb": "add_p_to_pe",
} }
provisioning_proxy.execute_playbook( provisioning_proxy.execute_playbook(
...@@ -127,6 +129,7 @@ def add_all_pe_to_p_dry( ...@@ -127,6 +129,7 @@ def add_all_pe_to_p_dry(
for router in pe_router_list for router in pe_router_list
}, },
"commit_comment": f"GSO_PROCESS_ID: {process_id} - TT_NUMBER: {tt_number} - Update iBGP mesh", "commit_comment": f"GSO_PROCESS_ID: {process_id} - TT_NUMBER: {tt_number} - Update iBGP mesh",
"verb": "add_pe_to_p",
} }
provisioning_proxy.execute_playbook( provisioning_proxy.execute_playbook(
...@@ -153,6 +156,7 @@ def add_all_pe_to_p_real( ...@@ -153,6 +156,7 @@ def add_all_pe_to_p_real(
for router in pe_router_list for router in pe_router_list
}, },
"commit_comment": f"GSO_PROCESS_ID: {process_id} - TT_NUMBER: {tt_number} - Update iBGP mesh", "commit_comment": f"GSO_PROCESS_ID: {process_id} - TT_NUMBER: {tt_number} - Update iBGP mesh",
"verb": "add_pe_to_p",
} }
provisioning_proxy.execute_playbook( provisioning_proxy.execute_playbook(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment