Adding a new external connection
External connections represent physical (L1) ports in the network fabric that act as uplinks outside of the network fabric. By configuring an external connection for a Logical Network, MetalSoft terminates the configured VLANs/VNIs on that external connection.
To configure an external connection:
- Navigate to
Fabric Manager, clickFabrics, click on the fabric you want to configure, and clickExternal Connections. - Click
Add external connection. - Fill in a name and a label and click
Create. - Click on the newly created external connection.
- Click the
Interfacestab. - Click
Attach Interface. - Click the network device and click
Next. - Click the required port and click
Attach.
Adding an external connection to an infrastructure
Section titled “Adding an external connection to an infrastructure”- Log into the Consumer UI by clicking on your initials in the top right and selecting
Infrastructure designer. - Click on
Add elementand select the network you wish to use. - If selecting a Private network, fill in the Name and the Label, select the Network profile, and click
Create. - Click on the network on the diagram, click on
External Connections, click onAttach Connection, select the External Connection, and click onAttach Connection. - The external connection now appears.
Once complete, you can deploy the infrastructure or delete the external connection.
Managing external connections via the API
Section titled “Managing external connections via the API”External connections have a full REST API with support for managing interfaces and logical network attachments.
Creating an external connection
Section titled “Creating an external connection”curl -X POST "https://<your-server>/api/v2/external-connections" \ -H "Content-Type: application/json" \ -d '{ "label": "ext-conn-01", "name": "Uplink to WAN router", "fabricId": 1, "externalConnectionInterfaces": [ {"networkDeviceInterfaceId": 100} ] }'Listing external connections
Section titled “Listing external connections”curl "https://<your-server>/api/v2/external-connections"Managing interfaces
Section titled “Managing interfaces”# List interfaces for an external connectioncurl "https://<your-server>/api/v2/external-connections/{externalConnectionId}/interfaces"
# Add an interfacecurl -X POST "https://<your-server>/api/v2/external-connections/{externalConnectionId}/interfaces" \ -H "Content-Type: application/json" \ -d '{"networkDeviceInterfaceId": 101}'
# Remove an interfacecurl -X DELETE "https://<your-server>/api/v2/external-connections/{externalConnectionId}/interfaces/{interfaceId}"Attaching a logical network
Section titled “Attaching a logical network”MetalSoft can link external connections to logical networks. Each attachment has its own status (pending_activation, active, etc.):
# Attach a logical networkcurl -X POST "https://<your-server>/api/v2/external-connections/{externalConnectionId}/logical-networks" \ -H "Content-Type: application/json" \ -d '{"logicalNetworkId": 10}'
# List attached logical networkscurl "https://<your-server>/api/v2/external-connections/{externalConnectionId}/logical-networks"
# Detach a logical network (from the logical network side)curl -X DELETE "https://<your-server>/api/v2/logical-networks/{logicalNetworkId}/external-connections/{externalConnectionId}"Viewing external connections for a logical network
Section titled “Viewing external connections for a logical network”curl "https://<your-server>/api/v2/logical-networks/{logicalNetworkId}/external-connections"