Skip to content

Commit 22a9324

Browse files
committed
BGP fabric v1
1 parent 413febe commit 22a9324

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

plugins/module_utils/fabric/fabric_types.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ def _init_fabric_types(self) -> None:
7878
self._fabric_type_to_template_name_map["LAN_CLASSIC"] = "LAN_Classic"
7979
self._fabric_type_to_template_name_map["VXLAN_EVPN"] = "Easy_Fabric"
8080
self._fabric_type_to_template_name_map["VXLAN_EVPN_MSD"] = "MSD_Fabric"
81+
self._fabric_type_to_template_name_map["BGP"] = "Easy_Fabric_eBGP"
8182

8283
# Map fabric type to the feature name that must be running
8384
# on the controller to enable the fabric type.
@@ -87,6 +88,7 @@ def _init_fabric_types(self) -> None:
8788
self._fabric_type_to_feature_name_map["LAN_CLASSIC"] = "lan"
8889
self._fabric_type_to_feature_name_map["VXLAN_EVPN"] = "vxlan"
8990
self._fabric_type_to_feature_name_map["VXLAN_EVPN_MSD"] = "vxlan"
91+
self._fabric_type_to_feature_name_map["BGP"] = "vxlan"
9092

9193
# Map fabric type to the value that the controller GUI displays
9294
# in the Fabric Type column at NDFC -> Manage -> Fabrics
@@ -127,8 +129,12 @@ def _init_fabric_types(self) -> None:
127129
self._mandatory_parameters["VXLAN_EVPN"] = copy.copy(
128130
self._mandatory_parameters_all_fabrics
129131
)
132+
self._mandatory_parameters["BGP"] = copy.copy(
133+
self._mandatory_parameters_all_fabrics
134+
)
130135
self._mandatory_parameters["ISN"].append("BGP_AS")
131136
self._mandatory_parameters["VXLAN_EVPN"].append("BGP_AS")
137+
self._mandatory_parameters["BGP"].append("BGP_AS")
132138
self._mandatory_parameters["VXLAN_EVPN_MSD"] = copy.copy(
133139
self._mandatory_parameters_all_fabrics
134140
)
@@ -138,6 +144,7 @@ def _init_fabric_types(self) -> None:
138144
self._mandatory_parameters["LAN_CLASSIC"].sort()
139145
self._mandatory_parameters["VXLAN_EVPN"].sort()
140146
self._mandatory_parameters["VXLAN_EVPN_MSD"].sort()
147+
self._mandatory_parameters["BGP"].sort()
141148

142149
def _init_properties(self) -> None:
143150
"""

plugins/modules/dcnm_fabric.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
- LAN_CLASSIC
6767
- VXLAN_EVPN
6868
- VXLAN_EVPN_MSD
69+
- BGP
6970
description:
7071
- The type of fabric.
7172
required: true
@@ -2528,6 +2529,7 @@
25282529
# if they don't already exist. If they exist, the playbook will
25292530
# exit without doing anything.
25302531
# - 1. VXLAN EVPN fabric
2532+
# - 1. BGP fabric
25312533
# - 1. VXLAN EVPN Multi-Site fabric
25322534
# - 1. LAN Classic fabric
25332535
@@ -2538,6 +2540,9 @@
25382540
- FABRIC_NAME: VXLAN_Fabric
25392541
FABRIC_TYPE: VXLAN_EVPN
25402542
BGP_AS: 65000
2543+
- FABRIC_NAME: BGP_Fabric
2544+
FABRIC_TYPE: BGP
2545+
BGP_AS: 65001
25412546
- FABRIC_NAME: MSD_Fabric
25422547
FABRIC_TYPE: VXLAN_EVPN_MSD
25432548
- FABRIC_NAME: LAN_Fabric
@@ -2561,6 +2566,11 @@
25612566
interface Ethernet1/1-16
25622567
description managed by NDFC
25632568
DEPLOY: false
2569+
- FABRIC_NAME: BGP_Fabric
2570+
FABRIC_TYPE: BGP
2571+
BGP_AS: 65001
2572+
SUPER_SPINE_BGP_AS: 65002
2573+
DEPLOY: false
25642574
- FABRIC_NAME: MSD_Fabric
25652575
FABRIC_TYPE: VXLAN_EVPN_MSD
25662576
LOOPBACK100_IP_RANGE: 10.22.0.0/24
@@ -2605,6 +2615,10 @@
26052615
FABRIC_TYPE: VXLAN_EVPN
26062616
BGP_AS: 65000
26072617
DEPLOY: false
2618+
- FABRIC_NAME: BGP_Fabric
2619+
FABRIC_TYPE: BGP
2620+
BGP_AS: 65001
2621+
DEPLOY: false
26082622
- FABRIC_NAME: MSD_Fabric
26092623
FABRIC_TYPE: VXLAN_EVPN_MSD
26102624
DEPLOY: false

0 commit comments

Comments
 (0)