Skip to content
Snippets Groups Projects
Commit 8fc2701e authored by Neda Moeini's avatar Neda Moeini
Browse files

Fixed the json render bug.

parent 530b8d4f
No related branches found
No related tags found
1 merge request!147Fixed the json render bug.
Pipeline #85483 passed
...@@ -75,7 +75,7 @@ def _generate_pe_inventory(pe_router_list: list[Router]) -> dict[str, Any]: ...@@ -75,7 +75,7 @@ def _generate_pe_inventory(pe_router_list: list[Router]) -> dict[str, Any]:
@step("[DRY RUN] Add P router to iBGP mesh") @step("[DRY RUN] Add P router to iBGP mesh")
def add_p_to_mesh_dry( def add_p_to_mesh_dry(
subscription: Router, callback_route: str, pe_router_list: list[Router], tt_number: str, process_id: UUIDstr subscription: dict[str, Any], callback_route: str, pe_router_list: list[Router], tt_number: str, process_id: UUIDstr
) -> None: ) -> None:
"""Perform a dry run of adding the new P router to the PE router mesh.""" """Perform a dry run of adding the new P router to the PE router mesh."""
extra_vars = { extra_vars = {
...@@ -95,7 +95,7 @@ def add_p_to_mesh_dry( ...@@ -95,7 +95,7 @@ def add_p_to_mesh_dry(
@step("[FOR REAL] Add P router to iBGP mesh") @step("[FOR REAL] Add P router to iBGP mesh")
def add_p_to_mesh_real( def add_p_to_mesh_real(
subscription: Router, callback_route: str, pe_router_list: list[Router], tt_number: str, process_id: UUIDstr subscription: dict[str, Any], callback_route: str, pe_router_list: list[Router], tt_number: str, process_id: UUIDstr
) -> None: ) -> None:
"""Add the P router to the mesh of PE routers.""" """Add the P router to the mesh of PE routers."""
extra_vars = { extra_vars = {
...@@ -115,7 +115,7 @@ def add_p_to_mesh_real( ...@@ -115,7 +115,7 @@ def add_p_to_mesh_real(
@step("[DRY RUN] Add all PE routers to P router iBGP table") @step("[DRY RUN] Add all PE routers to P router iBGP table")
def add_all_pe_to_p_dry( def add_all_pe_to_p_dry(
subscription: Router, pe_router_list: list[Router], callback_route: str, tt_number: str, process_id: UUIDstr subscription: dict[str, Any], pe_router_list: list[Router], callback_route: str, tt_number: str, process_id: UUIDstr
) -> None: ) -> None:
"""Perform a dry run of adding the list of all PE routers to the new P router.""" """Perform a dry run of adding the list of all PE routers to the new P router."""
extra_vars = { extra_vars = {
...@@ -136,14 +136,14 @@ def add_all_pe_to_p_dry( ...@@ -136,14 +136,14 @@ def add_all_pe_to_p_dry(
provisioning_proxy.execute_playbook( provisioning_proxy.execute_playbook(
playbook_name="update_ibgp_mesh.yaml", playbook_name="update_ibgp_mesh.yaml",
callback_route=callback_route, callback_route=callback_route,
inventory=subscription.router.router_fqdn, inventory=subscription["router"]["router_fqdn"],
extra_vars=extra_vars, extra_vars=extra_vars,
) )
@step("[FOR REAL] Add all PE routers to P router iBGP table") @step("[FOR REAL] Add all PE routers to P router iBGP table")
def add_all_pe_to_p_real( def add_all_pe_to_p_real(
subscription: Router, pe_router_list: list[Router], callback_route: str, tt_number: str, process_id: UUIDstr subscription: dict[str, Any], pe_router_list: list[Router], callback_route: str, tt_number: str, process_id: UUIDstr
) -> None: ) -> None:
"""Add the list of all PE routers to the new P router.""" """Add the list of all PE routers to the new P router."""
extra_vars = { extra_vars = {
...@@ -164,7 +164,7 @@ def add_all_pe_to_p_real( ...@@ -164,7 +164,7 @@ def add_all_pe_to_p_real(
provisioning_proxy.execute_playbook( provisioning_proxy.execute_playbook(
playbook_name="update_ibgp_mesh.yaml", playbook_name="update_ibgp_mesh.yaml",
callback_route=callback_route, callback_route=callback_route,
inventory=subscription.router.router_fqdn, inventory=subscription["router"]["router_fqdn"],
extra_vars=extra_vars, extra_vars=extra_vars,
) )
......
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