Managing switch pairs

In order to enable the creation of M-LAG or equivalent multi-chassis link aggregations the admins must mark the switches that form pairs.

Create a switch pair

Ensure both switches are added to the system and configured using either the UI or the switch create CLI command.

Use the CLI to create the switch pair between switch 10 and 20:

  1. List the registered switches to get the IDs:

metalcloud-cli switch list
+-------+------------+-------------------+-------+-------------+----------+
| ID    | IDENTIFIER | DATACENTER        | DRIVER| PROVISIONER | MGMT IP  |
+-------+------------+-------------------+-------+-------------+----------+
| 4     | sw1-env2   | us12-chi-qts01-dc | os_10 | evpnvxlanl2 | 100.0.1.6 |
| 5     | sw2-env2   | us12-chi-qts01-dc | os_10 | evpnvxlanl2 | 100.0.1.7 |
+-------+------------+-------------------+-------+-------------+----------+
Total: 2 Switches
  1. Create the switch pair between the two switches

metalcloud-cli switch-pair create --switch1 4 --switch2 5

Listing switch pairs

To list the switch pairs to see if the switch pair was created:

metalcloud-cli switch-pair list
+-------+---------------+---------------+-------+
| ID    | Switch1       | Switch2       | TYPE  |
+-------+---------------+---------------+-------+
| 5     | sw1-env2 (#4) | sw2-env2 (#5) | mlag  |
+-------+---------------+---------------+-------+
Total: 1 Switch links

Deleting switch pairs

metalcloud-cli switch-pair delete --switch1 4 --switch2 5