diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-06-05 07:42:56 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-06-05 07:42:56 +0200 |
commit | d692b330838f4ee87cda2a52dcb3f32129a293d8 (patch) | |
tree | e95a804b1a2f00baac2e8289c31f43e92bfda999 /interface-definitions/include/address-ipv4-ipv6-dhcp.xml.i | |
parent | e98dd388824f326e00ead34e6de466e67e08acd0 (diff) | |
download | vyos-1x-d692b330838f4ee87cda2a52dcb3f32129a293d8.tar.gz vyos-1x-d692b330838f4ee87cda2a52dcb3f32129a293d8.zip |
T2548: interface address does not support IP network definition
When migrating all single instances of the IP address XML definition to the
reusable include file an error was ported, too. This allowed an interface be
assigned an IPv4/IPv6 network address es e.g. 192.0.2.0/24 which is invalid.
The validator has been fixed to only allow IPv4/IPv6 host addresses instead.
Diffstat (limited to 'interface-definitions/include/address-ipv4-ipv6-dhcp.xml.i')
-rw-r--r-- | interface-definitions/include/address-ipv4-ipv6-dhcp.xml.i | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/interface-definitions/include/address-ipv4-ipv6-dhcp.xml.i b/interface-definitions/include/address-ipv4-ipv6-dhcp.xml.i index fb46f2c09..cca824d89 100644 --- a/interface-definitions/include/address-ipv4-ipv6-dhcp.xml.i +++ b/interface-definitions/include/address-ipv4-ipv6-dhcp.xml.i @@ -21,7 +21,7 @@ <description>Dynamic Host Configuration Protocol for IPv6</description> </valueHelp> <constraint> - <validator name="ip-cidr"/> + <validator name="ip-host"/> <regex>(dhcp|dhcpv6)</regex> </constraint> <multi/> |