efa tenant create

Creates tenant reserved resources such as the total number of Layer 3 VNIs, VLANs, VRFs, and bridge domains for fabrics with non-auto VNI settings, which can later be applied to an endpoint group.

Syntax

efa tenant create [ --name name | --description description | --type { private | shared } | --l2-vni-range range | --13-vni-range range | --vlan-range range | --vrf-count vrfs | --enable-bd { true | false } |--port list-of-ports | --mirror-destination-port list-of-ports ]

Parameters

--name name
Specifies the name of the tenant.
--description description
Describes the tenant.
--type { private | shared }
Specifies whether the endpoints and VRFs of a shared tenant are available to other tenants. The default is private.
--l2-vni-range range
Specifies the contiguous range of Layer 2 VNIs in ascending order to be reserved for the tenant within the scope of a fabric. Valid VNI values are 1 through 16777215. Example: 14201-14300.
--l3-vni-range range
Specifies the contiguous range of Layer 3 VNIs in ascending order starting from l3-vni-range to be reserved for the tenant within the scope of a fabric. Valid VNI values are 1 through 16777215. Example: 14201-14300.
--vlan-range range
Specifies the contiguous range of VLANs to be reserved for the tenant. Valid values are 2 through 4090. Example: 2-100.
--vrf-count vrfs
Specifies the number of VRFs reserved for the tenant.
--enable-bd { true | false }
Enables bridge domain capability for networks created under this tenant. Use the following format: --enable-bd=true or --enable-bd=false.
--port list-of-ports
Lists physical ports of devices that are reserved for the tenant. 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].
--mirror-destination-port list-of-ports

List of physical ports of devices which will be reserved as mirror destination ports. 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].

Examples

This example creates a VLAN-based tenant with manual VNI mapping.
$ efa tenant create --name tenant11 --l2-vni-range 10002-14190 
--l3-vni-range 14191-14200 --vlan-range 2-4090 --vrf-count 10 
--port 10.20.216.15[0/11-20],10.20.216.16[0/11-20] --description Subscriber1

Tenant created successfully.

--- Time Elapsed: 455.141597ms ---
This example creates a BD-based tenant.
$ efa tenant create --name tenant21 --l2-vni-range 30002-34190 
--l3-vni-range 34191-34200 --vlan-range 2-4090 --vrf-count 10 --enable-bd  
--port 10.20.216.15[0/21-28],10.20.216.16[0/21-28]

Tenant created successfully.

--- Time Elapsed: 501.176996ms ---
This example creates a tenant with auto-VNI with breakout ports.
$ efa tenant create --name tenant12 --vlan-range 2-100 --vrf-count 10 
--port 10.20.216.103[0/1-10],10.20.216.104[0/1-5,0/6:1-4]

Tenant created successfully.

--- Time Elapsed: 427.73527ms ---
This example creates a shared tenant.
$ efa tenant create --name ST --type shared 
--port 10.20.216.15[0/1-10],10.20.216.16[0/1-10]

Tenant created successfully.

--- Time Elapsed: 381.182892ms ---