You can ad or delete an anycast IP (both IPv4 and IPv6) on an existing tenant network.
Typical usage of the API from Openstack Integration is as follows:
efa tenant epg update --name <epg-name> --tenant <tenant-name>
--operation <anycast-ip-add | anycast-ip-delete>
--anycast-ip <ctag:anycast-ipv4> --anycast-ipv6 <ctag:anycast-ipv6>
The following example configures an anycast IP:
efa tenant epg show --detail
===============================================================================================================================================================
Name : ten1epg1
Tenant : vlanTen1
Description :
Type : extension
Ports : 10.20.246.15[0/1]
: 10.20.246.16[0/1]
POs :
Port Property : switchport mode : trunk
: native-vlan-tagging : false
NW Policy : ctag-range : 11
: vrf : ten1vrf1
: l3-vni : 8188
Network Property [Flags : * - Native Vlan]
+----+------+------------+-------+------+----------------------+--------------+--------+---------------+---------------+-------------+-------------+
|Ctag|L2-Vni|Anycast-IPv4|Anycast| BD | Local IP | Ctag- | Mtu- | Managed | Other | Dev-state | App-state |
| | | |-IPv6 | -name| (Device-IP->Local-IP)| Description | IPv6-ND| Config-IPv6-ND| Config-IPv6-ND| | |
+----+------+------------+-------+------+----------------------+--------------+--------+---------------+---------------+-------------+-------------+
| 11 |11 |10.0.11.1/24| | | | Tenant L3 | | False | False | provisioned | cfg-in-sync |
| | | | | | | Extended VLAN| | | | | |
+----+------+------------+-------+------+----------------------+--------------+--------+---------------+---------------+-------------+-------------+
====================================================================================================================================================
efa tenant epg update --name ten1epg1 --tenant vlanTen1 --operation anycast-ip-add --anycast-ipv6 11:10::1/123
efa tenant epg show --detail
====================================================================================================================================================
Name : ten1epg1
Tenant : vlanTen1
Description :
Type : extension
Ports : 10.20.246.15[0/1]
: 10.20.246.16[0/1]
POs :
Port Property : switchport mode : trunk
: native-vlan-tagging : false
NW Policy : ctag-range : 11
: vrf : ten1vrf1
: l3-vni : 8188
Network Property [Flags : * - Native Vlan]
+------+--------+--------------+--------------+---------+--------------------------------+-------------------------+-------------+-----------------------+---------------------+-------------+-------------+
| Ctag | L2-Vni | Anycast-IPv4 | Anycast-IPv6 | BD-name | Local IP (Device-IP->Local-IP) | Ctag-Description | Mtu-IPv6-ND | ManagedConfig-IPv6-ND | OtherConfig-IPv6-ND | Dev-state | App-state |
+------+--------+--------------+--------------+---------+--------------------------------+-------------------------+-------------+-----------------------+---------------------+-------------+-------------+
| 11 | 11 | 10.0.11.1/24 | 10::1/123 | | | Tenant L3 Extended VLAN | | False | False | provisioned | cfg-in-sync |
+------+--------+--------------+------+---------+--------------------------------+-------------------------+-------------+-----------------------+---------------------+-------------+-------------+
===============================================================================================================================================================
efa tenant epg update --name ten1epg1 --tenant vlanTen1 --operation anycast-ip-delete --anycast-ipv6 11:10::1/123
efa tenant epg show
===============================================================================================================================================================
Name : ten1epg1
Tenant : vlanTen1
Description :
Type : extension
Ports : 10.20.246.15[0/1]
: 10.20.246.16[0/1]
POs :
Port Property : switchport mode : trunk
: native-vlan-tagging : false
NW Policy : ctag-range : 11
: vrf : ten1vrf1
: l3-vni : 8188
Network Property [Flags : * - Native Vlan]
+------+--------+--------------+--------------+---------+--------------------------------+-------------+-----------------------+---------------------+-------------+-------------+
| Ctag | L2-Vni | Anycast-IPv4 | Anycast-IPv6 | BD-name | Local IP (Device-IP->Local-IP) | Mtu-IPv6-ND | ManagedConfig-IPv6-ND | OtherConfig-IPv6-ND | Dev-state | App-state |
+------+--------+--------------+--------------+---------+--------------------------------+-------------+-----------------------+---------------------+-------------+-------------+
| 11 | 11 | 10.0.11.1/24 | | | | | False | False | provisioned | cfg-in-sync |
+------+--------+--------------+--------------+---------+--------------------------------+-------------+-----------------------+---------------------+-------------+-------------+
For 'unstable' entities, run 'efa tenant po/vrf show' for details
===============================================================================================================================================================