From ccd564c2328a086b326957fdde8b07ca560bd6b2 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sun, 26 May 2024 10:06:02 +0200 Subject: dhcpv6-server: T3493: add proper validation for prefix-delegation start/stop address ISC DHCP server expects a string: "prefix6 2001:db8:290:: 2001:db8:29f:: /64;" where the IPv6 prefix/range must be :: terminaated with a delegated prefix length at the end. This commit changes the validator that the IPv6 address defined on the CLI must always end with ::. In addition a verify() step is added to check that the stop address is greater than start address. --- interface-definitions/service_dhcpv6-server.xml.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'interface-definitions') diff --git a/interface-definitions/service_dhcpv6-server.xml.in b/interface-definitions/service_dhcpv6-server.xml.in index a64da83ae..effba3884 100644 --- a/interface-definitions/service_dhcpv6-server.xml.in +++ b/interface-definitions/service_dhcpv6-server.xml.in @@ -229,7 +229,8 @@ IPv6 address used in prefix delegation - + + ([a-fA-F0-9]{1,4}:)+: @@ -254,7 +255,8 @@ IPv6 address used in prefix delegation - + + ([a-fA-F0-9]{1,4}:)+: -- cgit v1.2.3