HomeVyOS Platform

vrf: T6602: verify supplied VRF name on all interface types

This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

Description

vrf: T6602: verify supplied VRF name on all interface types

Only some (e.g. ethernet or wireguard) interfaces validate if the supplied VRF
actually exists. If this is not validated, one can pass an invalid VRF to the
system which generates an OSError exception.

To reproduce

set interfaces vxlan vxlan1 vni 1000
set interfaces vxlan vxlan1 remote 1.2.3.4
set interfaces vxlan vxlan1 vrf smoketest

results in

OSError: [Errno 255] failed to run command: ip link set dev vxlan1 master smoketest_mgmt

This commit adds the missing verify_vrf() call to the missing interface types
and an appropriate smoketest for all interfaces supporting VRF assignment.

(cherry picked from commit dd0ebffa33728e452ac6e11737c2283f0e390359)

Details

Provenance
c-poAuthored on Jul 23 2024, 5:05 PM
MergifyCommitted on Jul 24 2024, 6:18 PM
Parents
rVYOSONEX8fa7de187c32: Merge pull request #3867 from vyos/mergify/bp/circinus/pr-3861
Branches
Loading...
Tags
Loading...

Event Timeline