Removing network interface
Removing an interface follows the reverse of the steps followed when adding a network.
About this task
- A network cable is being removed and therefore its related subnet needs to be removed. This
means removing the corresponding
external_link
section inswitches > hosts > FabSw1a
and also removing the relatednetworkX
section from theapplication_network
section in the yaml. (This step is applicable for the reversal of both Adding a new network subnet (new cable) and Adding a new cable that does not have strict VLAN and uses the default VLAN (4080).) - A VLAN is being removed from an existing network cable. This means removing the VLAN from the
list of VLANs in the corresponding
external_link
entry in theswitches > hosts > FabSw1a
section of the yaml, and also removing the relatednetworkX
section from theapplication_network
section.
The two cases are described below:
Removing a network subnet (removing a cable)
To remove a network subnet, remove an external_link
entry from the
switch
section.
This procedure handles reversal of both Adding a new network subnet (new cable) and Adding a new cable that does not have strict VLAN and uses the default VLAN (4080). In this case, whether or not a VLAN was created, since the entire cable is being removed we do not need to differentiate between teh two cases from the addition of a network scenario.
Before you begin
- VLAN(s) of the cable that is being removed
- Network IP(s) of the cable that is being removed
external_link
entry relating to the network IPnetwork
entry relating to the network IP- New application network IP if this is going to change due to the removal of the cable.
Procedure
- Connect to node e1n1 by using the management floating IP.
- Follow Switch settings to delete the
external_link
section(s) that correspond to the VLAN(s)/cable being removed. - Follow Shared application network variables to remove the
networkX
entry in theapplication_network
of the yaml that corresponds to the VLAN/cable being removed. If thedefault_gateway
value for thisnetworkX
entry is true, you will need to setdefault_gateway: true
in an existingnetworkX
entry. Discuss with your network team to determine which network should house the default gateway. - If the application IP used to represent the application FQDN will be removed due to the
removal of the
networkX
entry, discuss with your network team to determine whichnetworkX
floating_ip
value should be used to resolve to the application FQDN. Follow Setting up a wildcard DNS entry to change the CNAME IP in the A record of the Zone Definition file on the customer's DNS server to match the new application floating IP. - Validate the YAML file.
- Test the YAML and run the playbook.
Removing VLAN from a subnet
To remove VLAN from a subnet, edit the existing external_link
entry in
the switches > hosts > FabSw1a
section of the yaml.
Before you begin
- VLAN number to remove
- New application network IP if this is going to change due to the removal of the given VLAN.
Procedure
- Connect to node e1n1 by using the management floating IP.
- Follow Switch settings to remove the VLAN value from the existing
vlans: ['VALUE']
list of the correspondingexternal_link
. - Follow Shared application network variables to remove the
networkX
entry in theapplication_network
section of the yaml that corresponds to the VLAN value being removed. If this network hasdefault_gateway: true
, you must choose anothernetworkX
entry to set as thedefault_gateway
. Check with your network team to determine which network should be the default (if there is still more than one). - If the application IP used to represent the application FQDN will be removed due to the
removal of the
networkX
entry, discuss with your network team to determine whichnetworkX
floating_ip
value should be used to resolve to the application FQDN. Follow Setting up a wildcard DNS entry to change the CNAME IP in the A record of the Zone Definition file on the customer's DNS server to match the new application floating IP. - Validate the YAML file.
- Test the YAML and run the playbook.