Multiple VLAN based tenants cannot share the same VLAN, considering the multiple tenants cannot share the same VNI.
Multiple BD based tenants can share the same VLAN, as the VLANs from each tenant are mapped to a unique BD and further a unique VNI.
EFA supports multi tenancy by allowing multiple tenants to have overlapping ctags and non-overlapping L2VNI. A tenant ctag will get a unique L2VNI and a unique network allocated in the fabric
The following example shows a multi tenancy configuration.
efa tenant create --name tenant11 --vrf-count 10 --vlan-range 2-4090 --port 10.24.80.134[0/15-17],10.24.80.135[0/15-17],10.25.225.11[0/15-17],10.25.225.46[0/15-17],10.24.85.74[0/15-17],10.24.85.76[0/15-17] --description Subscriber1
efa tenant show
+----------+-------------+-------------+------------+-----------+-----------+-----------------------+
| Name | L2VNI-Range | L3VNI-Range | VLAN-Range | VRF-Count | Enable-BD | Ports |
+----------+-------------+-------------+------------+-----------+-----------+-----------------------+
| tenant11 | | | 2-4090 | 10 | False | 10.24.85.74[0/15-17] |
| | | | | | | 10.24.80.135[0/15-17] |
| | | | | | | 10.25.225.11[0/15-17] |
| | | | | | | 10.25.225.46[0/15-17] |
| | | | | | | 10.24.80.134[0/15-17] |
| | | | | | | 10.24.85.76[0/15-17] |
+----------+-------------+-------------+------------+-----------+-----------+-----------------------+
efa tenant create --name tenant12 --vrf-count 10 --vlan-range 2-4090 --port 10.24.80.134[0/18-20],10.24.80.135[0/18-20],10.25.225.11[0/18-20],10.25.225.46[0/18-20],10.24.85.74[0/18-20],10.24.85.76[0/18-20]
Tenant Creation Failed:
Vlan (2) overlaps with Tenant (tenant11)
efa tenant create --name tenant21 --vrf-count 10 --enable-bd --port 10.24.80.134[0/21-25],10.24.80.135[0/21-25],10.24.85.74[0/21-25],10.24.85.76[0/21-25],10.25.225.11[0/21-25],10.25.225.46[0/21-25]
efa tenant create --name tenant22 --vrf-count 10 --enable-bd --port 10.24.80.134[0/26-30],10.24.80.135[0/26-30],10.24.85.74[0/26-30],10.24.85.76[0/26-30],10.25.225.11[0/26-30],10.25.225.46[0/26-30]
efa tenant show
+----------+-------------+-------------+------------+-----------+-----------+-----------------------+
| Name | L2VNI-Range | L3VNI-Range | VLAN-Range | VRF-Count | Enable-BD | Ports |
+----------+-------------+-------------+------------+-----------+-----------+-----------------------+
| tenant11 | | | 2-4090 | 10 | False | 10.25.225.46[0/15-17] |
| | | | | | | 10.25.225.11[0/15-17] |
| | | | | | | 10.24.80.135[0/15-17] |
| | | | | | | 10.24.85.74[0/15-17] |
| | | | | | | 10.24.85.76[0/15-17] |
| | | | | | | 10.24.80.134[0/15-17] |
+----------+-------------+-------------+------------+-----------+-----------+-----------------------+
| tenant21 | | | 2-4090 | 10 | True | 10.24.85.74[0/21-25] |
| | | | | | | 10.25.225.11[0/21-25] |
| | | | | | | 10.25.225.46[0/21-25] |
| | | | | | | 10.24.80.134[0/21-25] |
| | | | | | | 10.24.85.76[0/21-25] |
| | | | | | | 10.24.80.135[0/21-25] |
+----------+-------------+-------------+------------+-----------+-----------+-----------------------+
| tenant22 | | | 2-4090 | 10 | True | 10.24.85.76[0/26-30] |
| | | | | | | 10.25.225.11[0/26-30] |
| | | | | | | 10.24.80.135[0/26-30] |
| | | | | | | 10.25.225.46[0/26-30] |
| | | | | | | 10.24.85.74[0/26-30] |
| | | | | | | 10.24.80.134[0/26-30] |
+----------+-------------+-------------+------------+-----------+-----------+-----------------------+
efa tenant epg create --name epg11 --tenant tenant11 --po po1115,po1215,po1315 --switchport-mode trunk --switchport-native-vlan 11 --ctag-range 11-12
efa tenant epg create --name epg21 --tenant tenant21 --po po2121,po2221,po2321 --switchport-mode trunk --ctag-range 11-12
efa tenant epg create --name epg22 --tenant tenant21 --po po2122,po2222,po2322 --switchport-mode trunk --ctag-range 11-12
efa tenant epg show
======================================================================
Name : epg11
Tenant : tenant11
Description :
Ports :
POs : po1315, po1215, po1115
Port Property : switchport mode : trunk
: native-vlan-tagging : false
NW Policy : ctag-range : 11-12
Network Property [Flags : * - Native Vlan]
+------+--------+------------+---------+-------------+-------------+
| Ctag | L2-Vni | Anycast-ip | BD-name | Dev-state | App-state |
+------+--------+------------+---------+-------------+-------------+
| 11* | 11 | | | provisioned | cfg-in-sync |
+------+--------+------------+---------+-------------+-------------+
| 12 | 12 | | | provisioned | cfg-in-sync |
+------+--------+------------+---------+-------------+-------------+
======================================================================
======================================================================
Name : epg21
Tenant : tenant21
Description :
Ports :
POs : po2121, po2221, po2321
Port Property : switchport mode : trunk
: native-vlan-tagging : false
NW Policy : ctag-range : 11-12
Network Property [Flags : * - Native Vlan]
+------+--------+------------+--------------+-------------+-------------+
| Ctag | L2-Vni | Anycast-ip | BD-name | Dev-state | App-state |
+------+--------+------------+--------------+-------------+-------------+
| 11 | 4099 | | Auto-BD-4099 | provisioned | cfg-in-sync |
+------+--------+------------+--------------+-------------+-------------+
| 12 | 4100 | | Auto-BD-4100 | provisioned | cfg-in-sync |
+------+--------+------------+--------------+-------------+-------------+
======================================================================
======================================================================
Name : epg22
Tenant : tenant21
Description :
Ports :
POs : po2122, po2222, po2322
Port Property : switchport mode : trunk
: native-vlan-tagging : false
NW Policy : ctag-range : 11-12
Network Property [Flags : * - Native Vlan]
+------+--------+------------+--------------+-------------+-------------+
| Ctag | L2-Vni | Anycast-ip | BD-name | Dev-state | App-state |
+------+--------+------------+--------------+-------------+-------------+
| 12 | 4102 | | Auto-BD-4102 | provisioned | cfg-in-sync |
+------+--------+------------+--------------+-------------+-------------+
| 11 | 4101 | | Auto-BD-4101 | provisioned | cfg-in-sync |
+------+--------+------------+--------------+-------------+-------------+
efa tenant epg create --name epg23 --tenant tenant21 --po po2122,po2322 --switchport-mode trunk --ctag-range 21-22 --bridge-domain 21:Auto-BD-4101 --bridge-domain 22:Auto-BD-4102
efa tenant epg show
======================================================================
Name : epg11
Tenant : tenant11
Description :
Ports :
POs : po1315, po1215, po1115
Port Property : switchport mode : trunk
: native-vlan-tagging : false
NW Policy : ctag-range : 11-12
Network Property [Flags : * - Native Vlan]
+------+--------+------------+---------+-------------+-------------+
| Ctag | L2-Vni | Anycast-ip | BD-name | Dev-state | App-state |
+------+--------+------------+---------+-------------+-------------+
| 11* | 11 | | | provisioned | cfg-in-sync |
+------+--------+------------+---------+-------------+-------------+
| 12 | 12 | | | provisioned | cfg-in-sync |
+------+--------+------------+---------+-------------+-------------+
======================================================================
======================================================================
Name : epg21
Tenant : tenant21
Description :
Ports :
POs : po2121, po2221, po2321
Port Property : switchport mode : trunk
: native-vlan-tagging : false
NW Policy : ctag-range : 11-12
Network Property [Flags : * - Native Vlan]
+------+--------+------------+--------------+-------------+-------------+
| Ctag | L2-Vni | Anycast-ip | BD-name | Dev-state | App-state |
+------+--------+------------+--------------+-------------+-------------+
| 11 | 4099 | | Auto-BD-4099 | provisioned | cfg-in-sync |
+------+--------+------------+--------------+-------------+-------------+
| 12 | 4100 | | Auto-BD-4100 | provisioned | cfg-in-sync |
+------+--------+------------+--------------+-------------+-------------+
======================================================================
======================================================================
Name : epg22
Tenant : tenant21
Description :
Ports :
POs : po2122, po2222, po2322
Port Property : switchport mode : trunk
: native-vlan-tagging : false
NW Policy : ctag-range : 11-12
Network Property [Flags : * - Native Vlan]
+------+--------+------------+--------------+-------------+-------------+
| Ctag | L2-Vni | Anycast-ip | BD-name | Dev-state | App-state |
+------+--------+------------+--------------+-------------+-------------+
| 12 | 4102 | | Auto-BD-4102 | provisioned | cfg-in-sync |
+------+--------+------------+--------------+-------------+-------------+
| 11 | 4101 | | Auto-BD-4101 | provisioned | cfg-in-sync |
+------+--------+------------+--------------+-------------+-------------+
======================================================================
======================================================================
Name : epg23
Tenant : tenant21
Description :
Ports :
POs :
Port Property : switchport mode : trunk
: native-vlan-tagging : false
NW Policy : ctag-range : 21-22
Network Property [Flags : * - Native Vlan]
+------+--------+------------+--------------+-------------+-------------+
| Ctag | L2-Vni | Anycast-ip | BD-name | Dev-state | App-state |
+------+--------+------------+--------------+-------------+-------------+
| 21 | 4101 | | Auto-BD-4101 | provisioned | cfg-in-sync |
+------+--------+------------+--------------+-------------+-------------+
| 22 | 4102 | | Auto-BD-4102 | provisioned | cfg-in-sync |
+------+--------+------------+--------------+-------------+-------------+
======================================================================