Update a Tenant Endpoint Group

When you update a tenant endpoint group, you can specify the resources like device ports, VLAN range, L2 VNI range, L3 VNI range, and VRF count.

About this task

Follow this procedure to update a tenant endpoint group.

For syntax and command examples, see the ExtremeCloud Orchestrator Command Reference, 3.5.0 .

Procedure

To update a tenant endpoint group when you create a tenant, run the following command:
efa tenant create --name <tenant-name> --description <tenant-description> --l2-vni-range <value> --l3-vni-range <value> -- vlan-range <value> --vrf-count <value> --enable-bd –port <list-of-ports>

Example

  1. The following example shows add and delete operation of a port group:
    $ efa tenant epg update --name e1 --tenant tenant11 --operation port-group-add --po po2
    
    EndpointGroup updated successfully.
    
    --- Time Elapsed: 3.84922s ---
    
    
    $ efa tenant epg update --name e1 --tenant tenant11 --operation port-group-delete --po po2
    
    EndpointGroup updated successfully.
    
    --- Time Elapsed: 1.1256584s ---
  2. The following example shows add and delete operation of a port property:
    $ efa tenant epg update --name e1 --tenant tenant11 --operation port-property-add --pp-mac-acl-in ext-mac-permit-any-mirror-acl
    
    EndpointGroup updated successfully.
    
    --- Time Elapsed: 695.8661ms ---
    
    
    $ efa tenant epg update --name e1 --tenant tenant11 --operation port-property-delete --pp-mac-acl-in ext-mac-permit-any-mirror-acl
    
    EndpointGroup updated successfully.
    
    --- Time Elapsed: 593.8088ms ---
  3. The following example shows add and delete operation of a network property:
    $ efa tenant epg update --name e1 --tenant tenant11 --operation network-property-add --np-ip-acl-in 101:ext-ip-permit-any-mirror-acl
    
    EndpointGroup updated successfully.
    
    --- Time Elapsed: 3.014708s ---
    
    
    $ efa tenant epg update --name e1 --tenant tenant11 --operation network-property-delete --np-ip-acl-in 101:ext-ip-permit-any-mirror-acl
    
    EndpointGroup updated successfully.
  4. The following example shows add and delete operation of a ctag range:
    $ efa tenant epg update --name e1 --tenant tenant11 --operation ctag-range-add --ctag-range 105 --anycast-ip 105:8.8.8.8/24
    
    EndpointGroup updated successfully.
    
    --- Time Elapsed: 3.7282495s ---
    
    
    $ efa tenant epg update --name e1 --tenant tenant11 --operation ctag-range-delete --ctag-range 105 --anycast-ip 105:8.8.8.8/24
    
    EndpointGroup updated successfully.
    
    --- Time Elapsed: 1.4266126s ---
  5. The following example shows add and delete operation of anycast IP:
    $ efa tenant epg update --name e1 --tenant tenant11 --operation anycast-ip-add --anycast-ip 101:3.3.3.3/24
    
    EndpointGroup updated successfully.
    
    --- Time Elapsed: 3.8720945s ---
    
    
    $ efa tenant epg update --name e1 --tenant tenant11 --operation anycast-ip-delete --anycast-ip 101:3.3.3.3/24
    
    EndpointGroup updated successfully.
    
    --- Time Elapsed: 940.5274ms ---
  6. The following example shows add and delete operation of a VRF:
    $ efa tenant epg update --name e1 --tenant tenant11 --operation vrf-delete --vrf v2
    
    EndpointGroup updated successfully.
    
    --- Time Elapsed: 185.5455ms ---
    
    
    $ efa tenant epg update --name e1 --tenant tenant11 --operation vrf-add --vrf v1 --ctag-range 101 --anycast-ip 101:4.4.4.4/24
    
    EndpointGroup updated successfully.
    
    --- Time Elapsed: 6.9365858s ---
  7. The following example shows add and delete operation of a local IP:
    $ efa tenant epg update --name e1 --tenant tenant11 --operation local-ip-delete --local-ip 101,10.20.246.3:1.10.1.1/24
    
    EndpointGroup updated successfully.
    
    --- Time Elapsed: 2.3330832s ---
    
    
    $ efa tenant epg update --name e1 --tenant tenant11 --operation local-ip-add --local-ip 101,10.20.246.3:1.10.1.1/24
    
    EndpointGroup updated successfully.
    
    --- Time Elapsed: 840.6217ms ---
  8. The following example shows add and delete operation of a DHCP relay address:
    $ efa tenant epg update --name e1 --tenant tenant11 --operation dhcp-relay-address-ip-add --dhcpv4-relay-address-ip 101,10.20.246.4:10.1.1.1
    
    EndpointGroup updated successfully.
    
    --- Time Elapsed: 2.552077s ---
    
    
    $ efa tenant epg update --name e1 --tenant tenant11 --operation dhcp-relay-address-ip-delete --dhcpv4-relay-address-ip 101,10.20.246.4:10.1.1.1
    
    EndpointGroup updated successfully.
    
    --- Time Elapsed: 756.6756ms ---
    
    
    $ efa tenant epg update --name e1 --tenant tenant11 --operation dhcp-relay-address-ip-add --dhcpv6-relay-address-ip 101,10.20.246.4:1::1
    
    EndpointGroup updated successfully.
    
    --- Time Elapsed: 760.959ms ---
  9. The following example shows add and delete operation of a DHCP gateway:
    $ efa tenant epg update --name e1 --tenant tenant11 --operation dhcp-relay-gateway-ip-add --dhcpv6-relay-gateway-interface-ip 101,10.20.246.4:eth,0/5,3::3 --dhcpv6-relay-gateway-interface 101,10.20.246.4:eth,0/5
    
    EndpointGroup updated successfully.
    
    --- Time Elapsed: 725.1882ms ---
    
    
    $ efa tenant epg update --name e1 --tenant tenant11 --operation dhcp-relay-gateway-ip-delete --dhcpv6-relay-gateway-interface-ip 101,10.20.246.4:eth,0/5,3::3 --dhcpv6-relay-gateway-interface 101,10.20.246.4:eth,0/5
    
    EndpointGroup updated successfully.
    
    --- Time Elapsed: 768.0106ms ---
  10. The following 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 ---
  11. The following 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 ---
  12. The following 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 ---
  13. The following 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 ---