Adding and Deleting Management Subinterfaces

You can use the EFA CLI to add and delete management sub-interfaces.

For more information about the following commands, see the Extreme Fabric Automation Command Reference, 2.4.0.

Syntax to add a management sub-interface

efa mgmt subinterface create --name <name> --ip-address <IP Subnet> --vlan-id <VLAN>

If a management network with the same name exists, the users are informed about it and this operation fails.

The changes made by this operation span across three different components:

If any of the operations to the component fails, it is marked as a failed operation and the configurations return to the previous state.

Syntax to delete a management sub-interface

efa mgmt subinterface delete --name <name>

If a management network with the name exists, it is deleted. Otherwise, the correct response is provided in the command output.

Complete syntax examples

Example

$ efa mgmt subinterface?
Management subinterface commands

Usage:
  efa mgmt subinterface [command]

Available Commands:
  create        Create sub-interface (sub-interface)
  delete        Delete sub-interface (sub-interface)
  show          List of sub-interfaces (sub-interfaces)

Flags:
  -h, --help          help for sub-interface

Use "efa mgmt subinterface [command] --help" for more information about a command.

Example

$ efa mgmt subinterface create -h
Create management subinterface (sub-interface)
Usage:
  efa mgmt subinterface create [flags]
Flags:
      --name string         Name of the sub-interface
      --vlan-id int         VLAN Id of sub-interface
      --ip-address string   IP Address of sub-interface including subnet mask. 
                            Example: 10.24.80.150/24
  -h, --help                help for create

Example

$ efa subinterface delete -h
Delete management subinterface (sub-interface)
Usage:
  efa mgmt subinterface delete [flags]
Flags:
      --name string   Name of the sub-interface
  -h, --help          help for delete

Example

$ efa mgmt subinterface show -h
List of management sub-interfaces (sub-interfaces)

Usage:
  efa mgmt subinterface show [flags]
 Flags:
       --name string   Name of the sub-interface
   -h, --help          help for show

Example

$ efa mgmt subinterface create --name server1 --vlan-id 20 --ip-address
          20.20.20.2/24
Subinterface server1 created successfully

Example

$ efa mgmt subinterface delete --name server1
Subinterface server1 deleted successfully

Example

$ efa mgmt subinterface show
+---------------+------------------+------+---------------+
| Sub-Interface | Parent Interface | Vlan |   IP Subnet   |
+---------------+------------------+------+---------------+
| server1       | eth0             | 20   | 20.20.20.2/24 |
+---------------+------------------+------+---------------+
| server2       | eth0             | 50   | 50.50.50.2/24 |
+---------------+------------------+------+---------------+
Management Subinterfaces Details

Example

$ efa mgmt subinterface show --name server1
+---------------+------------------+------+---------------+
| Sub-Interface | Parent Interface | Vlan |   IP Subnet   |
+---------------+------------------+------+---------------+
| server1    | eth0             | 20   | 20.20.20.2/24 |
+---------------+------------------+------+---------------+
Management Subinterface Details