summaryrefslogtreecommitdiff
path: root/interface-definitions/include/interface/disable-link-detect.xml.i
diff options
context:
space:
mode:
authorYuxiang Zhu <vfreex@gmail.com>2022-12-29 07:00:45 +0000
committerYuxiang Zhu <vfreex@gmail.com>2022-12-30 19:38:12 +0800
commit355db68b5a13ec56d1949066bc44bcf2d4261213 (patch)
tree1dd678e67f94049a7d28ea0ac6ef586455ad19ce /interface-definitions/include/interface/disable-link-detect.xml.i
parent3abec988c44e8e211b91caf504bb6a756668791a (diff)
downloadvyos-1x-355db68b5a13ec56d1949066bc44bcf2d4261213.tar.gz
vyos-1x-355db68b5a13ec56d1949066bc44bcf2d4261213.zip
T4897: Fix virtual interface rebuild checks
`leaf_node_changed` returns `[]` (empty list) after a leaf node is added. e.g. Setting `source-interface` doesn't work on an existing vxlan interface. Steps to reproduce: - Add a vxlan interface without `source-address` or `source-interface` options set: ``` set interfaces vxlan vxlan999 vni 999 set interfaces vxlan vxlan999 remote 192.168.100.100 commit ``` - Then set `source-address` or `source-interface`: ``` set interfaces vxlan vxlan999 source-interface eth0 commit ``` Actual result: Source address or source-interface are not set: ``` ip -d link show dev vxlan999 76: vxlan999: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 link/ether 56:08:ba:4d:4e:a8 brd ff:ff:ff:ff:ff:ff promiscuity 0 minmtu 68 maxmtu 65535 vxlan id 999 remote 192.168.100.100 srcport 0 0 dstport 8472 tos inherit ttl 16 ageing 300 udpcsum noudp6zerocsumtx noudp6zerocsumrx addrgenmode none numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535 ``` Expected result: ``` 77: vxlan999: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 link/ether 9e:05:d9:58:1a:af brd ff:ff:ff:ff:ff:ff promiscuity 0 minmtu 68 maxmtu 65535 vxlan id 999 remote 192.168.100.100 dev eth0 srcport 0 0 dstport 8472 tos inherit ttl 16 ageing 300 udpcsum noudp6zerocsumtx noudp6zerocsumrx addrgenmode none numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535 ``` All invocations of leaf_node_changed() should be migrated to is_node_changes() if you are only interested in if something changed and don‘t care what exactly changed (content).
Diffstat (limited to 'interface-definitions/include/interface/disable-link-detect.xml.i')
0 files changed, 0 insertions, 0 deletions