summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/test_config_dependency.py
diff options
context:
space:
mode:
authormergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-07-25 05:48:39 +0300
committerGitHub <noreply@github.com>2024-07-25 05:48:39 +0300
commit67695c3e7a0d9fdc10ad3e381ad67cb30688e217 (patch)
treeb2e276a8b384f0c90cd050f701e89f1049b96c7b /smoketest/scripts/cli/test_config_dependency.py
parent8fa7de187c32d0fcc08e2c86d0e297ed8288077e (diff)
downloadvyos-1x-67695c3e7a0d9fdc10ad3e381ad67cb30688e217.tar.gz
vyos-1x-67695c3e7a0d9fdc10ad3e381ad67cb30688e217.zip
vrf: T6602: verify supplied VRF name on all interface types (#3870)
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) Co-authored-by: Christian Breunig <christian@breunig.cc>
Diffstat (limited to 'smoketest/scripts/cli/test_config_dependency.py')
0 files changed, 0 insertions, 0 deletions