Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
210 commits
Select commit Hold shift + click to select a range
a86f756
MSD sub-main changes
anramgop Nov 25, 2024
77532ee
MSD sub-main changes
anramgop Nov 25, 2024
d37cdc4
Added sub-main-common and service model validation
anramgop Nov 26, 2024
49dcb6d
Split validate and load functions
anramgop Nov 27, 2024
7ef9df8
Refactoring sub main common
anramgop Nov 27, 2024
0bd0e4f
MSD create role
anramgop Nov 27, 2024
075475e
Additional refactoring for MSD and VXLAN workflows
mikewiebe Dec 3, 2024
9a73ea9
updates for msd fabric templating
mtarking Dec 3, 2024
9fd9855
resolve conflicts
mtarking Dec 3, 2024
0a1b042
remove dup file
mtarking Dec 3, 2024
e413ba3
update create task for msd
mtarking Dec 3, 2024
a220edd
update create task for msd
mtarking Dec 3, 2024
87c8395
Add child fabrics logic
mikewiebe Dec 3, 2024
3b2ad70
Merge branch 'msd' of https://github.com/netascode/ansible-dc-vxlan i…
mikewiebe Dec 3, 2024
a1b5bbd
updated defaults
mtarking Dec 3, 2024
c81d63a
Merge branch 'msd' of github.com:netascode/ansible-dc-vxlan into msd
mtarking Dec 3, 2024
9070b83
Update prepare plugins
mikewiebe Dec 3, 2024
e7520ec
more work on msd & shift to overlay key from overlay_services but wit…
mtarking Dec 5, 2024
95730f2
Merge branch 'msd' of github.com:netascode/ansible-dc-vxlan into msd
mtarking Dec 5, 2024
58aca5a
Merge branch 'develop' into msd
mtarking Dec 5, 2024
f821779
updates for build and deployment of both single fabrics and msd fabrics
mtarking Dec 5, 2024
73abf69
chagnes from review with mike
mtarking Dec 5, 2024
becfbd5
update fabric name reference to use extended
mtarking Dec 5, 2024
b6cbb56
updats to msite templates
mtarking Dec 5, 2024
1e7af33
update to msd tempaltes and add conditional to only run child fabrics…
mtarking Dec 6, 2024
48019b0
first commit from hospital
mtarking Dec 9, 2024
15655e7
updates for remove child fabrics and isn
mtarking Dec 9, 2024
13c8ba6
updates to current msd workflow
mtarking Dec 11, 2024
88742d2
merge develop
mtarking Dec 11, 2024
1219609
update github templates
mtarking Dec 11, 2024
a33823f
fix pipeline errors
mtarking Dec 11, 2024
4eb8d41
fix pipeline errors
mtarking Dec 11, 2024
898fc20
fix deprecation error in pipeline
mtarking Dec 11, 2024
b0cb580
fix deprecation error in pipeline
mtarking Dec 11, 2024
58bb54a
fix deprecation error in pipeline
mtarking Dec 11, 2024
9ccf722
Fix prep_001 plugin for multisite
mikewiebe Dec 12, 2024
2e64830
Workflow fixes
mikewiebe Dec 13, 2024
597272d
Merge develop and cleanup
mikewiebe Dec 20, 2024
58dd0f0
Fix list defaults bug
mikewiebe Dec 20, 2024
e7ef318
Prepare plugin refactor
mikewiebe Dec 21, 2024
e7ee3ff
More refactoring
mikewiebe Dec 22, 2024
7c31491
Initialize shared dict vars
mikewiebe Dec 22, 2024
6293b98
refactored external network into new format
mthurstocisco Jan 8, 2025
cffab66
more refactoring for external fabrics
mthurstocisco Jan 9, 2025
e019b74
bug fix in sub_main_external in common
mthurstocisco Jan 9, 2025
c2a0c48
External plus refactoring
mikewiebe Jan 10, 2025
4ab1f16
ISN remove devices and bug fixes
mikewiebe Jan 13, 2025
0394274
Added support for MFD
Jan 14, 2025
15416b8
Added Fed files
Jan 14, 2025
fdaa9d0
Enable child fabric delete mode flag
mikewiebe Jan 14, 2025
e765809
Github actions fixes
mikewiebe Jan 14, 2025
cde1ce4
GitHub Actions Issues
mikewiebe Jan 14, 2025
c6e6d3b
More GitHub Actions Fixes
mikewiebe Jan 14, 2025
5382ce2
Deploy False for Fabrics
mikewiebe Jan 15, 2025
57b7636
Refactor for sharing code and simplification
mikewiebe Jan 16, 2025
7d7a39f
Refactoring and Multisite VRF and Network Removal Flag
mikewiebe Jan 16, 2025
2fdcaa9
Merge branch 'develop' into msd
mikewiebe Jan 16, 2025
7193551
New changes to support fed fabrics and their creation
mthurstocisco Jan 22, 2025
a15383b
Updates to fed
mthurstocisco Jan 23, 2025
630168d
Support for federated child fabric addition
mthurstocisco Jan 24, 2025
472f1dd
Added new updates to support federated overlay
mthurstocisco Jan 24, 2025
459d305
Fix route control no data
mikewiebe Jan 25, 2025
553df9e
Fix github actions issue
mikewiebe Jan 25, 2025
d948485
Fix rule 401
mikewiebe Jan 25, 2025
242dff1
Added support for VRFs
mthurstocisco Jan 27, 2025
003f334
Corrected small error in filenameing
mthurstocisco Jan 27, 2025
a530082
Added support for updating members
mthurstocisco Jan 27, 2025
a5baf67
Merge branch 'msd' into msd_federated
peter8498 Jan 27, 2025
573184e
update defaults for msite
mtarking Jan 28, 2025
722be09
Corrected comment
mthurstocisco Jan 28, 2025
9d521c8
Merge branch 'msd_federated' of https://github.com/netascode/ansible-…
mthurstocisco Jan 28, 2025
b7c3f28
fix typo
mtarking Jan 28, 2025
3b0a958
fix defaults
mtarking Jan 28, 2025
a0d2a08
refactor template groupings for vpc and vrf loopback
mtarking Jan 28, 2025
650efef
fix to isn fabric template
mtarking Jan 28, 2025
3c9cc02
get fabric attributes, fix msd templates, & start work on mapping swi…
mtarking Jan 29, 2025
0ef58cd
fix errors
mtarking Jan 29, 2025
938458d
refactor msite build for preprocessing for vrfs/networks attachments
mtarking Jan 30, 2025
f89bb1b
fix lint errors
mtarking Jan 30, 2025
2cd93f0
add msd child fabric vrfs template & fix lint errors
mtarking Jan 30, 2025
5627f6b
fixes
mtarking Jan 30, 2025
cf01600
set msite prepare defaults
mtarking Jan 30, 2025
116a424
Merge branch 'develop' into msd
mtarking Feb 1, 2025
81156d2
updated existing rules to allow empty vrfs & add first msite rule
mtarking Feb 2, 2025
5aa7677
fix lint errors
mtarking Feb 2, 2025
e29c17e
add msite cross-ref rule
mtarking Feb 2, 2025
fd4c73c
fix typo
mtarking Feb 2, 2025
38f4a4f
Initial commit
mthurstocisco Feb 7, 2025
3be9dc0
Merge branch 'msd' into msd_federated
mthurstocisco Feb 11, 2025
4f81716
Merge branch 'msd_federated' of https://github.com/netascode/ansible-…
mthurstocisco Feb 11, 2025
9bdb616
Update dc_vxlan_fabric_advanced.j2 to add braces
peter8498 Feb 12, 2025
95bbaf3
revert policy change
mthurstocisco Feb 13, 2025
71621e2
Added support to remove child fabrics
mthurstocisco Feb 13, 2025
135d8fd
Update defaults.yml
peter8498 Feb 24, 2025
d37a596
Update ndfc_attach_vrfs_loopbacks_fed.j2
peter8498 Feb 26, 2025
24fee35
Merge branch 'develop' into msd_federated
peter8498 Feb 27, 2025
8f783a8
Update links_filter_and_remove.py
mthurstocisco Feb 28, 2025
030595c
Update ndfc_vpc_peering.j2
mthurstocisco Mar 3, 2025
0d3edac
Added functionality to remove VRFs and Networks on Federated ms fabrics
mthurstocisco Mar 7, 2025
fe1eafe
Initial commit
mthurstocisco Feb 7, 2025
3d231eb
Update dc_vxlan_fabric_advanced.j2 to add braces
peter8498 Feb 12, 2025
5925e54
Update defaults.yml
peter8498 Feb 24, 2025
ec45cb8
Merge branch 'Extra_fabric_settings_plus_bug_fixes' of https://github…
mthurstocisco Mar 7, 2025
9620da9
Update dc_external_fabric_advanced.j2
mthurstocisco Mar 7, 2025
33667ee
Update order of interfaces and updating links to use MD_Extended
mthurstocisco Mar 7, 2025
4f251e5
Updates to add ports for NXAPI fields
mthurstocisco Mar 11, 2025
7c91b4d
Changes to support federated deploys and removals correctly
peter8498 Mar 14, 2025
02c7721
Updates to match new key names
mthurstocisco Mar 21, 2025
9c4648f
Updates to simplify fed overlay remove
mthurstocisco Mar 26, 2025
3464bc3
Merge branch 'develop' into msd_federated
mthurstocisco Mar 26, 2025
e7d3fcf
Update prep_105_topology_interfaces.py
mthurstocisco Mar 26, 2025
428cee2
Edge connections msd (#316)
mthurstocisco Mar 26, 2025
35b8b02
Merge branch 'dev_fed_edge_conn' into test_extra_fabric_settings
peter8498 Mar 26, 2025
ec2bc9d
Merge pull request #317 from netascode/test_extra_fabric_settings
peter8498 Mar 26, 2025
bedacd5
Revert "Test extra fabric settings" (#318)
mthurstocisco Mar 26, 2025
bd44980
Corrected a few issues found after the merging of develop and the
mthurstocisco Mar 31, 2025
a4ac72f
Merge branch 'dev_fed_edge_conn' of https://github.com/netascode/ansi…
mthurstocisco Mar 31, 2025
7de965d
Fixed usage of old fabric name in deploy and remove
mthurstocisco Mar 31, 2025
c5469f0
Added fabric settings
mthurstocisco Apr 1, 2025
c23b9df
Added missing nd_sync_v6 paramater and fixes j2 issue
mthurstocisco Apr 3, 2025
43edce5
Modified the order in the jinja
mthurstocisco Apr 3, 2025
e6c2b3f
Updated name reference to match new data model name
mthurstocisco Apr 3, 2025
120b6e0
Updated to use playbook_dir
mthurstocisco Apr 3, 2025
6d2f0dd
Added vxlan prefix to jinja
mthurstocisco Apr 3, 2025
30b6b36
Added some missing defaults and links defaults
mthurstocisco Apr 4, 2025
eb9bf79
changes of prefix from edge to nace and policy changes requried
mthurstocisco Apr 15, 2025
2015f8d
fix for network and vrf attachments in create role and dci fabric
mthurstocisco Apr 16, 2025
4c83d21
fix for vxlan and MFD fabric settings
mthurstocisco Apr 17, 2025
b84146d
fixed code for new model structure
mthurstocisco Apr 23, 2025
468c07a
fixed bug for deploy payload and reference to old model
mthurstocisco Apr 23, 2025
d1fa8f8
Increased deploy timeout
mthurstocisco Apr 23, 2025
e141e1c
insert missing changes detected variable for external fabric VPCs
mthurstocisco Apr 24, 2025
206e0bf
Added support for bootstrap but no DHCP server
mthurstocisco Apr 29, 2025
7166403
links check fix, VNI ranges and defaults
mthurstocisco May 1, 2025
624a890
Removed domain name as not needed in easy fabric
mthurstocisco May 2, 2025
4b2a453
fix for different case in ethernet interface name
mthurstocisco May 6, 2025
c8b52a6
Comment out some logic for existing links check
mthurstocisco May 6, 2025
0a6ec01
external fabric fix for no PTP and commenting back in existing link
mthurstocisco May 7, 2025
8be0f48
adding breakout field back into inventory templates
mthurstocisco May 9, 2025
e7fa705
Update ndfc_interface_vpc.j2
peter8498 May 13, 2025
3d44f09
update to match new model location for keys
mthurstocisco May 13, 2025
a51ee42
Merge branch 'dev_fed_edge_conn' of https://github.com/netascode/ansi…
mthurstocisco May 13, 2025
896add0
Corrected a couple of minor issues
mthurstocisco May 29, 2025
531f1a6
Removed VPC peering removal as not created for external fabrics
mthurstocisco Jun 4, 2025
1690534
updates to support vrf vlan name
mthurstocisco Jun 12, 2025
a78d0e6
Added support for VPC peering in external fabric
mthurstocisco Jun 12, 2025
56f5d99
Merge branch 'develop' into federated_multisite
mthurstocisco Jul 8, 2025
9905e1b
Adding new changes
Jul 21, 2025
2562c5d
Added VRF freeform changes
Jul 21, 2025
78fbd2a
Added VRF freeform changes
Jul 21, 2025
54153b4
Adding support for breakout of pre-provisioned switches
Aug 1, 2025
adb97da
Added support for breakout of pre-prov inventory
Aug 1, 2025
bb175eb
Added remove role filtering for breakout
Aug 1, 2025
8ea340d
Added support for VPC peering on external fabric
Aug 1, 2025
755eb63
Fixing bug when vpc_domain not defined
Aug 1, 2025
e01fc16
Added corrections and some breakout support
Aug 1, 2025
d9671c6
updates for child fabric vrf/networks on fed
Aug 5, 2025
7ab9a0b
Added corrections to vpc pairing and updarted fed for child fabric
Aug 7, 2025
404b572
More VPC for external updates
Aug 8, 2025
be8311e
expose admin state
Aug 18, 2025
21917a2
a few updates from develop
Aug 18, 2025
77d7176
fabric type to msd child fabric play
Aug 18, 2025
b77c89b
helper function update
Aug 18, 2025
6360e41
rules for external fabric
Aug 21, 2025
0af0551
Added files related to vpc_external fixes
Aug 26, 2025
a79f5e1
external fabric vpc rule
Aug 26, 2025
3a85fae
delete duplicate rule
Aug 26, 2025
bfd0b77
Merge branch 'develop' into federated_multisite
mthurstocisco Aug 28, 2025
ac59cc4
Update vrfs_networks.yml
mthurstocisco Aug 28, 2025
dd4cabf
external VPC changes
Sep 2, 2025
c4d65a8
Refactor to remove loopbacks loop and standardise formatting
Sep 3, 2025
1ba50d4
fixing santies
Sep 3, 2025
4bdbf18
more fixing santies
Sep 3, 2025
9dc1768
more fixing santies
Sep 3, 2025
1f5187a
reverting change to edge connections
Sep 3, 2025
a1bd52b
move attach loopsback vrf template
Sep 9, 2025
5485c90
edge connections update
Sep 9, 2025
030d98f
Aligning with pre-prov breakout changes
Sep 16, 2025
0d84fc4
few small bugs
Sep 18, 2025
ff2e3e1
another variable undefined bug
Sep 18, 2025
cfced28
more bugs around network refactoring
Sep 18, 2025
f49b861
removed some when clauses that weren't required
Sep 18, 2025
5b3a14a
fix clause for multisite overlay keys
Sep 18, 2025
2c44a22
changing all clauses to AND in network create
Sep 18, 2025
9a7b746
clause test
Sep 18, 2025
75d93bd
updated all clauses in networks and vrf create
Sep 18, 2025
0e9fd98
Added default of interface_all
Sep 18, 2025
6be27bd
quoting a couple of values
Sep 19, 2025
d7851c8
Merge branch 'develop' into federated_multisite
mthurstocisco Sep 22, 2025
39c88ce
Removed white spaces
Sep 22, 2025
5563946
splitting lines
Sep 22, 2025
dd235bf
removing old file
Sep 22, 2025
9c91d7d
removing duplicate lines
Sep 22, 2025
dd6b2d0
shift lists back to *
mtarking Sep 22, 2025
26f1b1f
remove unused detection var
mtarking Sep 22, 2025
d0b01f5
various updates to remove old config
Sep 23, 2025
694d181
remove old file
Sep 23, 2025
aec5097
remove unused variables and clean up defaults
Sep 23, 2025
323b868
fix sanity ignores
Sep 23, 2025
d7bd1bb
remove whitespace and unneeded debug
Sep 26, 2025
a0aebd7
updating task names and ansible module calls
Sep 26, 2025
3c08b73
updating task names and ansible module calls
Sep 26, 2025
a03458f
updating task names and ansible module calls
Sep 26, 2025
ee59cf0
update from MFD to MCFG
Sep 26, 2025
329a876
updating rules for external fabrics
Oct 2, 2025
9a79151
Merge branch 'develop' into federated_multisite
mtarking Oct 4, 2025
1a12ccf
Merge branch 'federated_multisite' of github.com:netascode/ansible-dc…
mtarking Oct 4, 2025
55d9480
Corrected if statement
Oct 6, 2025
d5482b0
Merge branch 'federated_multisite' of https://github.com/netascode/an…
Oct 6, 2025
539067c
merge develop
mtarking Nov 7, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 19 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ This will clone the example repository into the directory `nac-vxlan`. Next dele

In this directory create a new virtual environment and install a Python version of your choice. At the time writing, Python version 3.10.13 is commonly used. Command `pyenv install 3.10.13` will install this version. For detailed instructions please visit the [pyenv](https://github.com/pyenv/pyenv) site.


```bash
cd nac-vxlan
pyenv virtualenv <python_version> nac-nd
Expand Down Expand Up @@ -234,15 +233,13 @@ The data model is **required** to exist under the `host_vars` directory structur

The collection is **pre-built** to utilize the `group_vars` and `host_vars` matching what is already constructed in the repository. Currently this methodology is a 1:1 relationship between code repository and NDFC fabric. For more complex environments, the inventory file can be expanded to include multiple groups and hosts including the usage of multi-site fabrics as explained in a separate document.


#### Step 1 - Update the Inventory File

In the provided `inventory.yaml` file in the project's root directory, update
the `ansible_host` variable to point to your ND controller by replacing `"{{ lookup('ansible.builtin.env', 'ND_HOST') }}"` with the IP address of the
ND controller or setting the ```ND_HOST``` environment variable as described
in Step 3.


#### Step 2 - Configure Ansible Connection File

In the directory `group_vars/nd` is a file called `connection.yaml` that contains example data as:
Expand Down Expand Up @@ -304,9 +301,9 @@ export NDFC_SW_PASSWORD=Admin_123

This collection supports flexible credential management for network switches with three security levels:

- **🔐 Ansible Vault**: Encrypted credentials for production deployments
- **✅ Environment Variables**: Secure credential injection for CI/CD pipelines
- **⚠️ Plain Text**: Simple credentials for lab testing only
* **🔐 Ansible Vault**: Encrypted credentials for production deployments
* **✅ Environment Variables**: Secure credential injection for CI/CD pipelines
* **⚠️ Plain Text**: Simple credentials for lab testing only

The system supports both switch-specific credentials and group-level defaults with automatic fallback. Environment variable lookups can be configured in group_vars for enhanced security and automation compatibility.

Expand All @@ -328,7 +325,7 @@ This collection is intended for use with the following release versions:
<!--start requires_ansible-->
## Ansible Version Compatibility

This collection has been tested against following Ansible Core versions:
This collection has been tested against following Ansible Core versions:
* `2.14.x`
* `2.15.x`
* `2.16.x`
Expand Down Expand Up @@ -378,7 +375,6 @@ The first role is `cisco.nac_dc_vxlan.validate` which is going to validate the d

The subsequent roles are the `cisco.nac_dc_vxlan.dtc.create`, `cisco.nac_dc_vxlan.dtc.deploy`, and `cisco.nac_dc_vxlan.dtc.remove` roles. These roles are the primary roles that will invoke changes in ND as described earlier.


> [!WARNING]
> For your safety as indicated [earlier](#remove-role), the `remove` role also
> requires setting some variables to `true` under the `group_vars` directory.
Expand Down Expand Up @@ -417,13 +413,13 @@ For example, if VRFs and Networks are added/changed/removed in the model data fi

This capability is not available under the following conditions:

* Control flag `force_run_all` under group_vars is set to `true`.
* When using ansible tags to control execution.
* When one of the following roles failed to complete on the previous run.
* `cisco.nac_dc_vxlan.validate`
* `cisco.nac_dc_vxlan.create`
* `cisco.nac_dc_vxlan.deploy`
* `cisco.nac_dc_vxlan.remove`
* Control flag `force_run_all` under group_vars is set to `true`.
* When using ansible tags to control execution.
* When one of the following roles failed to complete on the previous run.
* `cisco.nac_dc_vxlan.validate`
* `cisco.nac_dc_vxlan.create`
* `cisco.nac_dc_vxlan.deploy`
* `cisco.nac_dc_vxlan.remove`

If any of these conditions is true then all roles/sections will be run.

Expand All @@ -432,12 +428,15 @@ This capability is not available under the following conditions:
* [Ansible Using Collections](https://docs.ansible.com/ansible/latest/user_guide/collections_using.html) for more details.

## Multi-Site Domain for VXLAN BGP EVPN Fabrics

A Multi-Site Domain (MSD) is a multifabric administrative domain that is created to manage multiple member fabrics. An MSD is a single point of control for definition of overlay VRFs and Networks that are shared across member fabrics. When you move fabrics under the MSD as child fabrics, the child fabrics share the VRFs and networks created at the MSD-level. This way, you can consistently provision VRFs and networks for different fabrics, at one go. It significantly reduces the time and complexity involving multiple fabric provisionings.

### To configure and manage MSD fabrics with VXLAN as Code, you should use the following workflow:
### To configure and manage MSD fabrics with VXLAN as Code, you should use the following workflow

1. Create each member/child fabric that will be managed by MSD using the normal data models for each fabric (or use a combined data model with all child fabrics)
2. Create the MSD fabric. In the data model set the fabric type to MSD and specify each child fabric that will be managed.
Reference the [VXLAN MultiSite Data Model](https://netascode.cisco.com/docs/data_models/vxlan/multisite/multisite/)

> [!NOTE]
> Any additional changes can be done using the MSD fabric data model or on an individual fabric basis using the respective playbooks.

Expand All @@ -453,10 +452,10 @@ We welcome community contributions to this collection. If you find problems, ple

## More Information

- [Cisco Nexus Dashboard and Services Deployment and Upgrade Guide](https://www.cisco.com/c/en/us/td/docs/dcn/nd/3x/deployment/cisco-nexus-dashboard-and-services-deployment-guide-321.html)
- [Cisco Nexus Dashboard Fabric Controller (NDFC) User Content for LAN Configuration Guide](https://www.cisco.com/c/en/us/td/docs/dcn/ndfc/1222/collections/ndfc-user-content-1222-lan.html)
- [Ansible User Guide](https://docs.ansible.com/ansible/latest/user_guide/index.html)
- [Ansible Developer Guide](https://docs.ansible.com/ansible/latest/dev_guide/index.html)
* [Cisco Nexus Dashboard and Services Deployment and Upgrade Guide](https://www.cisco.com/c/en/us/td/docs/dcn/nd/3x/deployment/cisco-nexus-dashboard-and-services-deployment-guide-321.html)
* [Cisco Nexus Dashboard Fabric Controller (NDFC) User Content for LAN Configuration Guide](https://www.cisco.com/c/en/us/td/docs/dcn/ndfc/1222/collections/ndfc-user-content-1222-lan.html)
* [Ansible User Guide](https://docs.ansible.com/ansible/latest/user_guide/index.html)
* [Ansible Developer Guide](https://docs.ansible.com/ansible/latest/dev_guide/index.html)

## Licensing

Expand Down
4 changes: 2 additions & 2 deletions plugins/action/common/nac_dc_validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def run(self, tmp=None, task_vars=None):
rules_list.append(f'{rules}common')
rules_list.append(f'{rules}ebgp_vxlan/')
rules_list.append(f'{rules}common_vxlan')
elif results['data']['vxlan']['fabric']['type'] in ('MSD', 'MCF'):
elif results['data']['vxlan']['fabric']['type'] in ('MSD', 'MCFG'):
rules_list.append(f'{rules}multisite/')
elif results['data']['vxlan']['fabric']['type'] in ('ISN'):
rules_list.append(f'{rules}isn/')
Expand Down Expand Up @@ -136,7 +136,7 @@ def run(self, tmp=None, task_vars=None):
rules_list.append(f'{rules}common')
rules_list.append(f'{rules}ibgp_vxlan/')
rules_list.append(f'{rules}common_vxlan')
elif results['data']['vxlan']['global']['fabric_type'] in ('MSD', 'MCF'):
elif results['data']['vxlan']['global']['fabric_type'] in ('MSD', 'MCFG'):
rules_list.append(f'{rules}multisite/')
elif results['data']['vxlan']['global']['fabric_type'] in ('ISN'):
rules_list.append(f'{rules}isn/')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def prepare(self):
model_data = self.kwargs['results']['model_extended']

# This plugin does not apply to the follwing fabric types
if model_data['vxlan']['fabric']['type'] in ['MSD', 'MFD']:
if model_data['vxlan']['fabric']['type'] in ['MSD', 'MCFG']:
return self.kwargs['results']
else:
switches = model_data['vxlan']['topology']['switches']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def prepare(self):
model_data = self.kwargs['results']['model_extended']

# We don't have switches for Multisite fabrics so need special handling
if model_data['vxlan']['fabric']['type'] in ('MSD', 'MFD'):
if model_data['vxlan']['fabric']['type'] in ('MSD', 'MCFG'):
switches = []
else:
switches = model_data['vxlan']['topology']['switches']
Expand Down Expand Up @@ -82,7 +82,7 @@ def prepare(self):
if net.get('network_attach_group') not in net_grp_name_list:
del net['network_attach_group']

if model_data['vxlan']['fabric']['type'] in ('MSD', 'MCF'):
if model_data['vxlan']['fabric']['type'] in ('MSD', 'MCFG'):
# Rebuild sm_data['vxlan']['multisite']['overlay']['vrf_attach_groups'] into
# a structure that is easier to use.
vrf_grp_name_list = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def prepare(self):
model_data = self.kwargs['results']['model_extended']

# This plugin does not apply to the follwing fabric types
if model_data['vxlan']['fabric']['type'] in ['MSD', 'MCF']:
if model_data['vxlan']['fabric']['type'] in ['MSD', 'MCFG']:
return self.kwargs['results']

model_data['vxlan']['topology']['interfaces'] = {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def prepare(self):
model_data = self.kwargs['results']['model_extended']

# This plugin does not apply to the follwing fabric types
if model_data['vxlan']['fabric']['type'] in ['MSD', 'MFD']:
if model_data['vxlan']['fabric']['type'] in ['MSD', 'MCFG']:
return self.kwargs['results']
else:
switches = model_data['vxlan']['topology']['switches']
Expand Down
Loading
Loading