From dd4c60c1c3423f02457bc1dcc25e36d03d537a5f Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Tue, 20 Apr 2021 19:34:39 +0200 Subject: interfaces: T3488: harden regex for supplied address string The previously used regex allowed an address value of "dhcpfoo" which is invalid and will raise an OSError. Harden the regex that it explicitly must be dhcp or dhcpv6. --- interface-definitions/include/interface/address-ipv4-ipv6-dhcp.xml.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface-definitions/include/interface/address-ipv4-ipv6-dhcp.xml.i b/interface-definitions/include/interface/address-ipv4-ipv6-dhcp.xml.i index b9dd59bea..123590c08 100644 --- a/interface-definitions/include/interface/address-ipv4-ipv6-dhcp.xml.i +++ b/interface-definitions/include/interface/address-ipv4-ipv6-dhcp.xml.i @@ -23,7 +23,7 @@ - (dhcp|dhcpv6) + ^(dhcp|dhcpv6)$ -- cgit v1.2.3