diff options
| author | Ruben Herold <ruben@puettmann.net> | 2026-11-02 10:38:50 +0100 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2026-11-08 08:43:16 +0100 |
| commit | bac758ad16b7cfa855eb977af8f50f4b9b0639d7 (patch) | |
| tree | d103c71fab0d96f3fb7ac5cce3b53eff558d80e0 /src/migration-scripts/https/2-to-3 | |
| parent | d6902e6423ec78b5b99d96b6427ebee771ea6c38 (diff) | |
| download | vyos-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/2-to-3')
0 files changed, 0 insertions, 0 deletions
