summaryrefslogtreecommitdiff
path: root/scripts/cli
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-09-06 14:16:37 +0000
committerChristian Breunig <christian@breunig.cc>2026-09-06 14:16:37 +0000
commit599ebc0e23ec8f4415a6192d34d562cb663e4174 (patch)
tree19c06bd216433f0d32a124fad2b2fb4b96c58c6f /scripts/cli
parent3fc7b6e052402dba9bf13bbff54ff6d99a87fd8e (diff)
downloadvyos-1x-599ebc0e23ec8f4415a6192d34d562cb663e4174.tar.gz
vyos-1x-599ebc0e23ec8f4415a6192d34d562cb663e4174.zip
dhcp: T9278: do not append the VRF option twice to ip route commands
01-vyos-cleanup builds its route deletion with an explicit "vrf <name>". The ip() wrapper caught that command and delroute() appended $VRF_OPTION again, so both "ip route show" and "ip route del" ran with "vrf red vrf red". The FRR-down kernel fallback had the same flaw. Add vrf_option(), yielding $VRF_OPTION only when the arguments carry no "vrf" token, and use it in both places. The append cannot simply be dropped, as delroute() is also reached without a VRF. iptovtysh() parses single fields and was never affected.
Diffstat (limited to 'scripts/cli')
0 files changed, 0 insertions, 0 deletions