srl-labs / containerlab

container-based networking labs
https://containerlab.dev
BSD 3-Clause "New" or "Revised" License
1.54k stars 263 forks source link

set parent's port mtu for macvlan interfaces on sr linux #1487

Closed hellt closed 1 year ago

hellt commented 1 year ago

SR Linux tries to apply the /system/mtu/default-port-mtu value for its interfaces. When we provision macvlan interface into srlinux namespace setting the mtu to any value not equal to parents mtu will fail and lead to interface shutdown.

When provisioning macvlan interfaces on srlinux we need to get the mtu value of a parent interface and set it in the configuration template for the port.

steiler commented 1 year ago

part of #1475