Skip to content
Snippets Groups Projects
Commit 6fe30c22 authored by Karel van Klink's avatar Karel van Klink :smiley_cat:
Browse files

update ip_trunk model in endpoints

parent 57932124
No related branches found
No related tags found
1 merge request!44Feature/ip trunk migration
...@@ -81,9 +81,9 @@ def provision_ip_trunk(params: IPTrunkProvisioningParams) -> PlaybookLaunchRespo ...@@ -81,9 +81,9 @@ def provision_ip_trunk(params: IPTrunkProvisioningParams) -> PlaybookLaunchRespo
return run_playbook( return run_playbook(
playbook_path=path.join(config_params.ansible_playbooks_root_dir, "iptrunks.yaml"), playbook_path=path.join(config_params.ansible_playbooks_root_dir, "iptrunks.yaml"),
inventory=str( inventory=str(
params.subscription["iptrunk"]["iptrunk_sideA_node"]["router_fqdn"] params.subscription["iptrunk"]["iptrunk_sides"][0]["iptrunk_side_node"]["router_fqdn"]
+ "\n" + "\n"
+ params.subscription["iptrunk"]["iptrunk_sideB_node"]["router_fqdn"] + params.subscription["iptrunk"]["iptrunk_sides"][1]["iptrunk_side_node"]["router_fqdn"]
+ "\n" + "\n"
), ),
extra_vars=extra_vars, extra_vars=extra_vars,
...@@ -113,9 +113,9 @@ def modify_ip_trunk(params: IPTrunkModifyParams) -> PlaybookLaunchResponse: ...@@ -113,9 +113,9 @@ def modify_ip_trunk(params: IPTrunkModifyParams) -> PlaybookLaunchResponse:
return run_playbook( return run_playbook(
playbook_path=path.join(config_params.ansible_playbooks_root_dir, "iptrunks.yaml"), playbook_path=path.join(config_params.ansible_playbooks_root_dir, "iptrunks.yaml"),
inventory=str( inventory=str(
params.subscription["iptrunk"]["iptrunk_sideA_node"]["router_fqdn"] params.subscription["iptrunk"]["iptrunk_sides"][0]["iptrunk_side_node"]["router_fqdn"]
+ "\n" + "\n"
+ params.subscription["iptrunk"]["iptrunk_sideB_node"]["router_fqdn"] + params.subscription["iptrunk"]["iptrunk_sides"][1]["iptrunk_side_node"]["router_fqdn"]
+ "\n" + "\n"
), ),
extra_vars=extra_vars, extra_vars=extra_vars,
...@@ -147,9 +147,9 @@ def delete_ip_trunk(params: IPTrunkDeleteParams) -> PlaybookLaunchResponse: ...@@ -147,9 +147,9 @@ def delete_ip_trunk(params: IPTrunkDeleteParams) -> PlaybookLaunchResponse:
return run_playbook( return run_playbook(
playbook_path=path.join(config_params.ansible_playbooks_root_dir, "iptrunks.yaml"), playbook_path=path.join(config_params.ansible_playbooks_root_dir, "iptrunks.yaml"),
inventory=str( inventory=str(
params.subscription["iptrunk"]["iptrunk_sideA_node"]["router_fqdn"] params.subscription["iptrunk"]["iptrunk_sides"][0]["iptrunk_side_node"]["router_fqdn"]
+ "\n" + "\n"
+ params.subscription["iptrunk"]["iptrunk_sideB_node"]["router_fqdn"] + params.subscription["iptrunk"]["iptrunk_sides"][1]["iptrunk_side_node"]["router_fqdn"]
+ "\n" + "\n"
), ),
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