Skip to main content

Link Management

By default, the Forward Collector uses CDP or LLDP neighbor information to discover network connections and build the network topology. When CDP or LLDP is absent or misconfigured, the Forward Collector uses heuristics to infer links by examining MAC address and other information.

There are cases where the heuristics may not be able to accurately infer every link in the network, so the layout tools provide the ability to manually define links as well as to infer links based on interface description.

Links can be manually imported and exported as well.

The Manage Links view consolidates all links into a single table. From this table, you can:

  • View collected, inferred, and user-added links.
  • Add or remove links.
  • Edit interface types.

To access Manage Links:

  1. With a location selected in Search, select Physical Topology from the dropdown.
  2. Click Edit on the Topology Toolbar.
  3. Select Manage Links.

Topology view - Manage Links

To add a link:

  1. Enter Edit mode and select Manage Links.
  2. Select Add a Link at the top of the table.
  3. Select the source and destination device interfaces.
  4. Select the device interface label: Auto-detect (default), Management, Data.
  5. Click Add Link to confirm.
  6. Repeat for additional links, then click Save to apply all topology edits.

Link Add

If changes require reprocessing, a prompt appears asking you to confirm saving and starting reprocessing.

tip

For manually adding Port Channels/LAGs, it's best practice to add the underlying interfaces to the topology, and the Forward Collector will discover the Port Channel / LAG configuration on top. If that's not feasible, it's also possible to add just the Port Channel / LAG, however the underlying link information will not be known.

To remove a link:

  1. Enter Edit mode and select Manage Links.
  2. Select the delete icon at the end of the link's row.
  3. Repeat for additional links, then click Save to apply all topology edits.

When a link is deleted, a Restore icon appears in its place. Click this to restore the link.

Management Interface Override

Within the Manage Links table, you can override the type assigned to an interface.

To edit an interface label:

  1. Click the Edit icon in the Interface Labels column of a link’s row.
  2. Choose one of the following:
    • Auto-detect: Uses the platform’s default classification.
    • Data: Classifies the interface as a data interface.
    • Management: Classifies the interface as a management interface.
  3. Click Save to apply changes.

Topology view - Management Interface Override

Overriding interface types ensures management links are accurately represented in the topology and can be filtered correctly when toggling link types.

Bulk Actions

In the Manage Links table, you can perform actions on multiple links at once.

Topology view - Bulk Actions

Available actions include:

  • Delete: Remove multiple links.
  • Interface Override Edit: Apply interface type overrides (Auto-detect, Data, or Management) to multiple interfaces at the same time.
  • Restore: Restore multiple previously deleted links.

Topology view - Bulk Actions Edit

This option is very useful in case of silent devices, typically occurring in device HA configurations.
The default result of having silent devices is that those devices appear on topology view as isolated devices with no links.

These kind of links can be inferred by leveraging a user-configurable interface description notation based on a Regex parsing logic.

Patterns used to identify and infer these link can be added by clicking on the Infer links icon in the topology edit mode,

Link Infer Icon

providing the pattern in the Interface description pattern dialog, optionally adding more patterns, and finally clicking on Save.

Link Infer

Each pattern must be a valid regular expression with exactly two capture groups; one for the device and one for the port.

To add clarity, the groups can be named device and port.

An interface description pattern is reported below:

to\s+(?<device>\S+)\s+(?<port>[^"]+)

The following screenshot shows an example of a link inferred using the interface description pattern above:

Link Infer Example

Clicking on an inferred link in edit mode allows to Confirm or to Remove the link.

Manually added links can be imported and exported using the Network Topology REST API.

The curl command below can be used to get the list of manually created links for a given snapshot (e.g. snapshot 74) in Forward SaaS (https://fwd.app):

curl -u [username:password] https://fwd.app/api/snapshots/74/topology/overrides -H "accept: application/json" > link_overrides.json

The link_overrides.json file might look like this:

{
"absent": [],
"present": [
{
"port1": "txrdncu01fwrm03z po11",
"port2": "txrdncu01fwrm03 po11"
},
{
"port1": "txrdncu01fwrm03z po12",
"port2": "txrdncu01fwrm04 po12"
}
]
}

The following curl command can be used to completely replace the list of manually created links for the same snapshot:

curl -u [username:password] -X PUT https://fwd.app/api/snapshots/74/topology/overrides -H 'Content-Type: application/json' -d @link_overrides.json