efa tenant epg update

Updates an existing End Point Group (epg).

Syntax

efa tenant epg update [--name epg-name--tenant tenant-name --operation value --port port list --po portchannel list --switchport modevalue --switchport-native-vlan-tagging value --ctag range value --vrfvalue --l3 vni value --l2 vni ctag:l2-vni --anycast-iplist of ctag:anycast-ip --bridge-domain list of ctag:bridge-domain --switchport-native-vlan value ]

Parameters

--name
Name of the EPG
--tenant

Name of the tenant

--operation value

Defines the operation to be performed. Valid values are port-group-add, port-group-delete, ctag-range-add, ctag-range-delete, vrf-add, vrf-delete.

port

Port or ports on the device where the tenant network is configured. For example, SW1_IP[0/1],SW2_IP[0/5].

po

List of portchannels where the tenant network is configured. Example; po1 or po1,po2.

switchport-mode
Configures Switch port mode on the interfaces. Valid values are access | trunk | trunk-no-default-native
switchport-native-vlan-tagging
Enable the native vlan characteristics on the ports of this endpoint group. Valid only if mode is set to trunk.
switchport-native-vlan

Configures native vlan on the interfaces. Valid values are 2 through 4090.

ctag-range
Customer vlan range in comma and hyphen separated format.
vrf

VRF to which these networks are attached.

l3-vni

L3 VNI to be used for this VRF.

l2-vni

L2 VNI to be used for this network in the format ctag:l2-vni.

anycast-ip

Ipv4 anycast address in the format ctag:anycast-ip.

bridge-domain

Bridge domain name in the format ctag:bridge-domain.

Usage Guidelines

An empty EPG is an EPG without any network-policy, network-property, or port-property.

An EPG can be created with a port-property and without a port-group. But an EPG cannot be created with a port-group and without a port-property.

ARP suppression is enabled for all the possible broadcast domains(VLAN/BD) on the device.

CEP is handled by replicating all the tenant configuration on the MCT neighbor except for the endpoint configuration, since the endpoint doesn‘t exist on the MCT neighbor.

The EPG update for a bridge domain-based EPG is similar to an update to a VLAN-based EPG. During a port-group add/delete operation, the logical interface configurations will be created/deleted for the existing ctags, and the corresponding bridge-domains.

During a ctag-range-add or delete operation, the logical interface and bridge-domain configurations are updated on the EPG.

During vrf-add or delete operation, the corresponding L3 configurations will be added or deleted to the EPG.

Event handling sets the corresponding tenant networks to the cfg-refreshed state. However, there is no way to re-push the refreshed configuration onto the devices.

Examples

The following example is an EPG update for a VLAN Based L3 EPG : port-group-delete

efa tenant epg show
=============================================================================
Name          :epg11
Tenant        :tenant11
Description   :
Ports         :
POs           : po1115, po1315, po1215
Port Property : switchport mode     : trunk              
		:native-vlan-tagging : false
NW Policy     : ctag-range          : 211-212              
		: vrf                 : blue11              
		: l3-vni              : 14191 
Network Property [Flags : * - Native Vlan]
+------+--------+---------------+---------+-------------+-------------+
| Ctag | L2-Vni |  Anycast-ip   | BD-name | Dev-state  |  App-state  |
+------+--------+---------------+---------+-------------+-------------+
| 212  | 10003  | 10.10.12.1/24 |         | provisioned | cfg-in-sync|
+------+--------+---------------+---------+-------------+-------------+
| 211* | 10002  | 10.10.11.1/24 |         | provisioned | cfg-in-sync|
+------+--------+---------------+---------+-------------+-------------+
efa tenant epg update --operation port-group-delete --name epg11 --tenant tenant11 --po po1315 
efa tenant epg show
=============================================================================
Name          :epg11
Tenant        :tenant11
Description   :
Ports         :
POs           : po1115, po1215
Port Property : switchport mode     : trunk              
		:native-vlan-tagging : false
NW Policy     : ctag-range          : 211-212              
		: vrf                 : blue11              
		: l3-vni              : 14191 
Network Property [Flags : * - Native Vlan]
+------+--------+---------------+---------+-------------+-------------+
| Ctag | L2-Vni |  Anycast-ip   | BD-name | Dev-state  |  App-state  |
+------+--------+---------------+---------+-------------+-------------+
| 212  | 10003  | 10.10.12.1/24 |         | provisioned | cfg-in-sync|
+------+--------+---------------+---------+-------------+-------------+
| 211* | 10002  | 10.10.11.1/24 |         | provisioned | cfg-in-sync|
+------+--------+---------------+---------+-------------+-------------+

The following example is an EPG update for a VLAN Based L3 EPG : port-group-add

efa tenant epg update --operation port-group-add --name epg11 --tenant tenant11 --po po1315 
efa tenant epg show
=============================================================================
Name          :epg11
Tenant        :tenant11
Description   :
Ports         :
POs           : po1115, po1315, po1215
Port Property : switchport mode     : trunk              
		:native-vlan-tagging : false
NW Policy     : ctag-range          : 211-212              
		: vrf                 : blue11              
		: l3-vni              : 14191 
Network Property [Flags : * - Native Vlan]
+------+--------+---------------+---------+-------------+-------------+
| Ctag | L2-Vni |  Anycast-ip   | BD-name | Dev-state  |  App-state  |
+------+--------+---------------+---------+-------------+-------------+
| 212  | 10003  | 10.10.12.1/24 |         | provisioned | cfg-in-sync|
+------+--------+---------------+---------+-------------+-------------+
| 211* | 10002  | 10.10.11.1/24 |         | provisioned | cfg-in-sync|
+------+--------+---------------+---------+-------------+-------------+