Skip to content

Commit 0ac6a83

Browse files
authored
Fix remove device issue for isn external (#452)
* Update sub_main_isn.yml * Update sub_main_external.yml
1 parent 3e03367 commit 0ac6a83

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

roles/dtc/common/tasks/sub_main_external.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@
5252
- name: Build NDFC Fabric Switch Inventory List From Template
5353
ansible.builtin.import_tasks: common/ndfc_inventory.yml
5454

55+
# We need to also build an inventory list without bootstrap settings
56+
# This will be used for device removal.
57+
- name: Build NDFC Fabric Switch Inventory List From Template - No Bootstrap
58+
ansible.builtin.import_tasks: common/ndfc_inventory_no_bootstrap.yml
59+
5560
# --------------------------------------------------------------------
5661
# Build NDFC Fabric Breakout Interfaces List From Template
5762
# --------------------------------------------------------------------
@@ -188,6 +193,7 @@
188193
policy_config: "{{ policy_config }}"
189194
sub_interface_routed: "{{ sub_interface_routed }}"
190195
updated_inv_config: "{{ updated_inv_config }}"
196+
updated_inv_config_no_bootstrap: "{{ updated_inv_config_no_bootstrap }}"
191197

192198
- name: Run Diff Flags
193199
ansible.builtin.debug:

roles/dtc/common/tasks/sub_main_isn.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@
5252
- name: Build NDFC Fabric Switch Inventory List From Template
5353
ansible.builtin.import_tasks: common/ndfc_inventory.yml
5454

55+
# We need to also build an inventory list without bootstrap settings
56+
# This will be used for device removal.
57+
- name: Build NDFC Fabric Switch Inventory List From Template - No Bootstrap
58+
ansible.builtin.import_tasks: common/ndfc_inventory_no_bootstrap.yml
59+
5560
# --------------------------------------------------------------------
5661
# Build NDFC Fabric Breakout Interfaces List From Template
5762
# --------------------------------------------------------------------
@@ -189,6 +194,7 @@
189194
policy_config: "{{ policy_config }}"
190195
sub_interface_routed: "{{ sub_interface_routed }}"
191196
updated_inv_config: "{{ updated_inv_config }}"
197+
updated_inv_config_no_bootstrap: "{{ updated_inv_config_no_bootstrap }}"
192198

193199
- name: Run Diff Flags
194200
ansible.builtin.debug:

0 commit comments

Comments
 (0)