efa tenant epg detach

Splits an endpoint group into multiple endpoint groups.

Syntax

efa tenant epg detach [ --tenant name|--source-epg epg-name|--destination-epg epg-name|--destination-epg-description |--destination-epg-ctag-range ctag-range|--help]

Parameters

--tenant name
Specifies the tenant name.
--source-epg epg-name
Specifies the name of the source endpoint group.
--destination-epg epg-name
Specifies the name of the destination endpoint group.
--destination-epg-description
Displays destination endpoint group description.
--destination-epg-ctag-range ctag-range
Specifies the destination endpoint group CTAG range.
--help
Displays help for the command.

The following example shows an existing endpoint group, splits it into multiple endpoint groups, and then shows the individual endpoint groups.

$ efa tenant epg show --name epg4 --tenant tenant11
+------+----------+-----------+--------------------+----+-------------------------+-------------+
| Name |  Tenant  |   Type    |       Ports        | PO |       SwitchPort        | Native Vlan |
|      |          |           |                    |    |          Mode           |   Tagging   | 
+------+----------+-----------+--------------------+----+-------------------------+-------------+
| epg4 | tenant11 | extension | 10.20.216.15[0/17] |    | trunk-no-default-native |    false    |
|      |          |           |                    |    |                         |             |
+------+----------+-----------+--------------------+----+-------------------------+-------------+
+------------+-----+-------+-------+
| Ctag Range | Vrf | L3Vni | State |

+------------+-----+-------+-------+
|  101-103   |     |       |       |
|            |     |       |       |
+------------+-----+-------+-------+
EndpointGroup Details

PO/Vrf [Flags : * - Unstable]

For 'unstable' entities, run 'efa tenant po/vrf show' for details

--- Time Elapsed: 156.85406ms ---


$ efa tenant epg detach --tenant tenant11 --source-epg epg4 
--destination-epg epg5 --destination-epg-ctag-range 103

EndpointGroup: epg4 split successfully.

--- Time Elapsed: 263.570996ms ---


$ efa tenant epg show --name epg4 --tenant tenant11
+------+----------+-----------+--------------------+----+-------------------------+-------------+
| Name |  Tenant  |   Type    |       Ports        | PO |       SwitchPort        | Native Vlan |
|      |          |           |                    |    |          Mode           |   Tagging   |
+------+----------+-----------+--------------------+----+-------------------------+-------------+
| epg4 | tenant11 | extension | 10.20.216.15[0/17] |    | trunk-no-default-native |    false    |
|      |          |           |                    |    |                         |             |
+------+----------+-----------+--------------------+----+-------------------------+-------------+
+------------+-----+-------+-------+
| Ctag Range | Vrf | L3Vni | State |
|            |     |       |       |
+------------+-----+-------+-------+
|  101-102   |     |       |       |
|            |     |       |       |
+------------+-----+-------+-------+
EndpointGroup Details

PO/Vrf [Flags : * - Unstable]

For 'unstable' entities, run 'efa tenant po/vrf show' for details

--- Time Elapsed: 155.775375ms ---
$ efa tenant epg show --name epg5 --tenant tenant11
+------+----------+------+--------------------+----+-------------------------+-------------+
| Name |  Tenant  | Type |       Ports        | PO |       SwitchPort        | Native Vlan |
|      |          |      |                    |    |          Mode           |   Tagging   |
+------+----------+------+--------------------+----+-------------------------+-------------+
| epg5 | tenant11 |      | 10.20.216.15[0/17] |    | trunk-no-default-native |    false    |
|      |          |      |                    |    |                         |             |
+------+----------+------+--------------------+----+-------------------------+-------------+
+------------+-----+-------+-------+
| Ctag Range | Vrf | L3Vni | State |
|            |     |       |       |
+------------+-----+-------+-------+
|    103     |     |       |       |
|            |     |       |       |
+------------+-----+-------+-------+
EndpointGroup Details

PO/Vrf [Flags : * - Unstable]

For 'unstable' entities, run 'efa tenant po/vrf show' for details

--- Time Elapsed: 154.028719ms ---