Links written at both ends
Write each cable on both of its ports, and give the device and port at the other end in each port's description.
Why
A cable has two ends, and a change made at one end only breaks it quietly. The link still comes up, but:
- a VLAN on one end only never reaches the other;
- an MTU that differs drops large packets, and can keep OSPF from forming;
- a speed that differs, or a LAG on one end only, can leave the link down.
The description tells whoever stands at the rack, or reads the device's config, where the cable goes.
In Circuit
link on a port gives the device and port at the other end. circuit validate stops when the far end doesn't link back, and when the two ends disagree on VLANs, LAG, speed, MTU, or addresses. It warns when a port's description doesn't give the far device and port as that device prints them. While diff and apply are connected, they also warn when LLDP finds a cable in another port than link says.
The two ends of the trunk in the single site example, on the router and on the switch:
"25g-1": {
description: "switch 10GE1/0/1",
speed: "10g",
trunk_vlans: ["mgmt", "home", "guests"],
link: { device: "switch", port: "10g-1" },
},"10g-1": {
description: "router sfp28-1",
trunk_vlans: ["mgmt", "home", "guests"],
link: { device: "router", port: "25g-1" },
},Each description uses the far device's own name for the port: the switch runs VRP, which prints 10g-1 as 10GE1/0/1, and the router runs RouterOS, which prints 25g-1 as sfp28-1. With guests left off the switch's end, validate stops:
error router: interfaces.ethernet.25g-1.link: interfaces.ethernet.25g-1 carries VLANs 10, 20, 30 tagged, and switch interfaces.ethernet.10g-1 carries VLANs 10, 20 tagged
error switch: interfaces.ethernet.10g-1.link: interfaces.ethernet.10g-1 carries VLANs 10, 20 tagged, and router interfaces.ethernet.25g-1 carries VLANs 10, 20, 30 taggedTrunks and Staying up cover trunks and LAGs, and Make a change covers the LLDP check.