From 246808bc33a2343827ab2b4d76ae449fcc549ac9 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 20 Nov 2020 12:22:44 +0100 Subject: tunnel: T3072: xml: harden regex validators --- interface-definitions/interfaces-tunnel.xml.in | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'interface-definitions') diff --git a/interface-definitions/interfaces-tunnel.xml.in b/interface-definitions/interfaces-tunnel.xml.in index bf588a075..b322374b3 100644 --- a/interface-definitions/interfaces-tunnel.xml.in +++ b/interface-definitions/interfaces-tunnel.xml.in @@ -39,7 +39,6 @@ - @@ -104,7 +103,7 @@ - (en|eth|br|bond|gnv|vxlan|wg|tun)[0-9]+ + ^(en|eth|br|bond|gnv|vxlan|wg|tun)[0-9]+$ @@ -145,7 +144,7 @@ ^(gre|gre-bridge|ip6gre|ip6ip6|ipip|ipip6|sit)$ - Invalid encapsulation mode, must be one of: gre gre-bridge ip6gre ip6ip6 ipip ipip6 sit + Invalid encapsulation, must be one of: gre, gre-bridge, ipip, sit, ipip6, ip6ip6, ip6gre @@ -163,7 +162,7 @@ Disable Multicast (default) - (enable|disable) + ^(enable|disable)$ Must be 'disable' or 'enable' -- cgit v1.2.3