Skip to content

Fix/multiserver vxlan clab link syntax - #3830

Open
sdargoeuves wants to merge 2 commits into
ipspace:devfrom
sdargoeuves:fix/multiserver-vxlan-clab-link-syntax
Open

Fix/multiserver vxlan clab link syntax#3830
sdargoeuves wants to merge 2 commits into
ipspace:devfrom
sdargoeuves:fix/multiserver-vxlan-clab-link-syntax

Conversation

@sdargoeuves

Copy link
Copy Markdown
Collaborator

…links

The template emitted a mix of two incompatible containerlab link
syntaxes: an 'endpoints' list (brief/veth form) combined with the typed
'type: vxlan' form. containerlab rejects this while parsing the
topology file, so cross-server point-to-point links never deploy:

  Failed to read topology file: yaml: unmarshal errors:
    field endpoints not found in type struct { Type string; links.LinkVxlanRaw }

A typed VXLAN link takes a single 'endpoint' mapping, not an 'endpoints'
list -- the far end is described by 'remote' and 'vni'. The
'host:vx<vni>' pseudo-endpoint was never created either, and does not
match the name containerlab generates (vx-<node>_<iface>).

Link definitions have been parsed strictly since containerlab v0.44.0
and 'type: vxlan' has taken a singular 'endpoint' since v0.46.0, so the
unknown field is rejected rather than ignored on every supported
containerlab release.

Emit the endpoint mapping instead. The link type and the (deprecated but
still accepted) 'udp-port' key are left unchanged to keep the fix
minimal.
…ort'

containerlab marks 'udp-port' as deprecated in LinkVxlanRaw in favour of
'dst-port', which pairs with the later 'src-port' option. Both keys are
still accepted -- 'udp-port' is copied to 'dst-port' when only the former
is set -- so this is a cosmetic change with no behaviour difference.

'dst-port' requires containerlab v0.70.0, which is below netlab's current
minimum of 0.74.99.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant