summaryrefslogtreecommitdiff
path: root/src/migration-scripts/https/6-to-7
diff options
context:
space:
mode:
authorRuben Herold <ruben@puettmann.net>2026-11-02 10:38:50 +0100
committerChristian Breunig <christian@breunig.cc>2026-11-08 08:43:16 +0100
commitbac758ad16b7cfa855eb977af8f50f4b9b0639d7 (patch)
treed103c71fab0d96f3fb7ac5cce3b53eff558d80e0 /src/migration-scripts/https/6-to-7
parentd6902e6423ec78b5b99d96b6427ebee771ea6c38 (diff)
downloadvyos-1x-bac758ad16b7cfa855eb977af8f50f4b9b0639d7.tar.gz
vyos-1x-bac758ad16b7cfa855eb977af8f50f4b9b0639d7.zip
utils: T9322: reject addresses that are not a single address and honour zone indexes
The helper that tells whether an address is assigned to an interface accepted ranges and addresses with a zone index. A range ended in a traceback. A zone index was ignored, so an address on the loopback interface was reported as assigned to the interface named in the zone. The helper now rejects everything that is not a single address, a zone index included. The functions that look for an address on all interfaces use the zone to pick the one interface to check, so a zone that names an interface which does not hold the address is no longer accepted. The command that lists the addresses is passed as a list, so the interface name and the namespace do not reach a shell. Unit tests and a smoketest cover the cases.
Diffstat (limited to 'src/migration-scripts/https/6-to-7')
0 files changed, 0 insertions, 0 deletions