efa tenant create

Creates tenant reserved resources like total number of L3 VNIs, VLANs, VRFs, and Bridge Domains for fabrics with non-auto VNI settings which can later be applied to an end point group.

Syntax

efa tenant create [ --name | --description | --type < private | shared > | --l2-vni-range | --13-vni-range | --vlan-range |--vrf-count | --enable-bd |--port | --help ]

Parameters

--name
Specifies the name of the tenant.
--description
Describes the tenant.
--l2-vni-range
Specifies the contiguous range of L2 VNIs in ascending order will be reserved for the tenant within the scope of a fabric. Valid VNI values are <1-16777215>. Example: 14201-14300
--l3-vni-range
Specifies the contiguous range of L3 VNIs in ascending order starting from l3-vni-range will be reserved for the tenant within the scope of a fabric contiguous range of L3 VNIs in ascending order will be reserved for the tenant within the scope of a fabric. Valid VNI values are <1-16777215>. Example: 14201-14300
--vlan-range
Specifies the contiguous range of Vlans to be reserved for the tenant. Valid values are <2-4090>. Example: 2-100
--vrf-count
Specifies the number of VRFs reserved for the tenant.
--enable-bd
Enables BD capability for networks created under this tenant. Example: --enable-bd=true | --enable-bd=false
--port
Lists physical ports of devices which are reserved for the asset. Example: SW1_IP[0/1,0/2,0/12-15,0/5:4],SW2_IP[0/1,0/4,0/5:1-2,0/5:3,0/9-20]
--type
Specifies the type. POs/VRFs of shared tenant that are available to other tenants. Create EPG is not allowed to share tenant. Default Type: private. Valid values are shared | private.
--help
Displays help for efa tenant create.

Examples

# efa tenant create --name vPOD1 --vrf-count 10 --vlan-range 2-4090 --port 172.31.254.13[0/1],172.31.254.20[0/1] --description Subscriber1
1) Cluster On device

SLX# show running-config cluster
cluster fabric1-cluster-1
 peer 10.20.20.7
 peer-interface Port-channel 64
 peer-keepalive
  auto
 !
 member vlan all
 member bridge-domain all
!
SLX#

2) EPG creation

$ ./efa.exe tenant create --name tenant1 --l2-vni-range 10002-14190 --vlan-range 2-4090 --port 10.25.225.173[0/21-25],10.25.225.174[0/21-25] --description Tenant1 --vrf-count 10  --enable-bd

Tenant created successfully.

--- Time Elapsed: 405.0004ms ---

$ ./efa.exe tenant po create --name po1 --port 10.25.225.173[0/22],10.25.225.174[0/22] --speed 10Gbps --negotiation active --tenant tenant1 --lacp-timeout short

PortChannel created successfully.

--- Time Elapsed: 53.5310544s ---

$ ./efa.exe tenant epg create --name epg_nonclos --tenant tenant1 --description Epg_nonclos --port 10.25.225.173[0/23] --ctag-range 2001-2003 --switchport-mode trunk --po po1 --type l3-hand-off

EndpointGroup created successfully.

--- Time Elapsed: 23.1993643s ---


3) Cluster config on deivce after EPG 

SLX# show running-config cluster
cluster fabric1-cluster-1
 peer 10.20.20.7
 peer-interface Port-channel 64
 peer-keepalive
  auto
 !
 member vlan all
 member bridge-domain all
 member bridge-domain remove 1-3
!

4) DB added after EPG 

dcapp_tenant=# SELECT * FROM public.mct_cluster_bridge_domain_mapping;
 id | cluster_id | bridge_domain | bridge_domain_value | member_action | oob_created |  dev_state  |  app_state  | reason
----+------------+---------------+---------------------+---------------+-------------+-------------+-------------+--------
 70 |          4 |             0 |                   1 | Removed       | f           | provisioned | cfg-in-sync |
 71 |          4 |             0 |                   2 | Removed       | f           | provisioned | cfg-in-sync |
 72 |          4 |             0 |                   3 | Removed       | f           | provisioned | cfg-in-sync |
 73 |          3 |             0 |                   1 | Removed       | f           | provisioned | cfg-in-sync |
 74 |          3 |             0 |                   2 | Removed       | f           | provisioned | cfg-in-sync |
 75 |          3 |             0 |                   3 | Removed       | f           | provisioned | cfg-in-sync |
(6 rows)

5) EPG delete
$ ./efa.exe tenant epg delete --name epg_nonclos --tenant tenant1                                                                     
EndpointGroup: epg_nonclos deleted successfully.

--- Time Elapsed: 16.2781195s ---

6) Cluser config on device after epg delete

SLX# show running-config cluster
cluster fabric1-cluster-1
 peer 10.20.20.7
 peer-interface Port-channel 64
 peer-keepalive
  auto
 !
 member vlan all
 member bridge-domain all
!

7) DB table after epg delete

dcapp_tenant=# SELECT * FROM public.mct_cluster_bridge_domain_mapping;
 id | cluster_id | bridge_domain | bridge_domain_value | member_action | oob_created | dev_state | app_state | reason
----+------------+---------------+---------------------+---------------+-------------+-----------+-----------+--------
(0 rows)