diff options
author | Thomas Mangin <thomas.mangin@exa.net.uk> | 2020-03-30 22:31:29 +0100 |
---|---|---|
committer | Thomas Mangin <thomas.mangin@exa.net.uk> | 2020-03-30 22:31:29 +0100 |
commit | e2f80e57d9895d207edf0ad92c299dc7862087d6 (patch) | |
tree | f7f3fcb13a09d2632d7f5fa914ae2f2e35dcee19 /python/vyos/configtree.py | |
parent | 272d6a0968fb22bda0c82068ed1cbf7d9ddd3fd9 (diff) | |
download | vyos-1x-e2f80e57d9895d207edf0ad92c299dc7862087d6.tar.gz vyos-1x-e2f80e57d9895d207edf0ad92c299dc7862087d6.zip |
validate: T2182: IPv6 are not normalised when compared
Adding an already existing IP address on an interface would cause
the 'ip addr add' command to fail. To prevent this, the code checks
if the IP already exists on the interface.
The code was not normalising the different ways of
representing the IPv6 address (trailing 0, ::, etc.).
Diffstat (limited to 'python/vyos/configtree.py')
0 files changed, 0 insertions, 0 deletions