From 3da9e108bd483dc2bff9ba64844062403cd78746 Mon Sep 17 00:00:00 2001 From: Vaibhav Hemant Dixit Date: Wed, 2 Aug 2023 02:10:04 -0700 Subject: [PATCH] [renumber-topo] Add extra mgmt ip to ptf redeploy step (#9230) What is the motivation for this PR? If a testbed supports extra mgmt IP then the PTF gets the extra IP when add-topo is run. This change was done as part of #8432 However, if PTF redeploy is done, the extra IP added by add-topo is lost as PTF is recreated. This issue is fixed in this PR by adding extra mgmt IP support in renumber_topo ansible playbook. How did you do it? How did you verify/test it? Tested on physical testbed. --- ansible/roles/vm_set/tasks/renumber_topo.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/roles/vm_set/tasks/renumber_topo.yml b/ansible/roles/vm_set/tasks/renumber_topo.yml index fd8beca1f99..3dcef6260ac 100644 --- a/ansible/roles/vm_set/tasks/renumber_topo.yml +++ b/ansible/roles/vm_set/tasks/renumber_topo.yml @@ -150,6 +150,7 @@ vm_type: "{{ vm_type }}" vm_properties: "{{ vm_properties if vm_properties is defined else omit }}" ptf_mgmt_ip_addr: "{{ ptf_ip }}" + ptf_extra_mgmt_ip_addr: "{{ ptf_extra_mgmt_ip.split(',') | default([]) }}" ptf_mgmt_ipv6_addr: "{{ ptf_ipv6 }}" ptf_mgmt_ip_gw: "{{ mgmt_gw }}" ptf_mgmt_ipv6_gw: "{{ mgmt_gw_v6 | default(None) }}"