Skip to content

Commit 6dad08f

Browse files
committed
update external fabric
1 parent 6f14de2 commit 6dad08f

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

plugins/action/common/prepare_plugins/prep_103_topology_switches.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def prepare(self):
4848
model_data['vxlan']['topology']['border_gateway_super_spine'] = {}
4949
model_data['vxlan']['topology']['tor'] = {}
5050
model_data['vxlan']['topology']['core_router'] = {}
51+
model_data['vxlan']['topology']['edge_router'] = {}
5152
sm_switches = model_data['vxlan']['topology']['switches']
5253
for switch in sm_switches:
5354
# Build list of switch IP's based on role keyed by switch name

roles/dtc/common/templates/ndfc_fabric/dc_external_fabric/dc_external_fabric_base.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{# Auto-generated NDFC DC External Base config data structure for fabric {{ vxlan.fabric.name }} #}
2+
- FABRIC_NAME: {{ vxlan.fabric.name }}
3+
FABRIC_TYPE: {{ vxlan.fabric.type }}
4+
DEPLOY: False
25

36
{# Include NDFC DC External General Template #}
47
{% include '/ndfc_fabric/dc_external_fabric/general/dc_external_fabric_general.j2' %}

roles/dtc/create/tasks/sub_main_external.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,17 @@
3232
- ansible.builtin.debug: msg="Configuring NXOS Devices using NDFC (Direct to Controller)"
3333
tags: "{{ nac_tags.create }}"
3434

35+
# - name: Create NDFC External Fabric
36+
# ansible.builtin.import_tasks: external/fabric.yml
37+
# when:
38+
# - MD_Extended.vxlan.fabric.name is defined
39+
# - MD_Extended.vxlan.fabric.type == "External"
40+
# - MD_Extended.vxlan.global is defined
41+
# - vars_common_external.changes_detected_fabric
42+
# tags: "{{ nac_tags.create_fabric }}"
43+
3544
- name: Create NDFC External Fabric
36-
ansible.builtin.import_tasks: external/fabric.yml
45+
ansible.builtin.import_tasks: common/fabric.yml
3746
when:
3847
- MD_Extended.vxlan.fabric.name is defined
3948
- MD_Extended.vxlan.fabric.type == "External"

0 commit comments

Comments
 (0)