From 85d0ae7b434a3ae9f3bd50ad7fee1fcd23b26a26 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Tue, 20 Apr 2021 21:01:59 +0200 Subject: xml: T3488: when using regex one must use ^ and $ when checking string literals --- interface-definitions/interfaces-bonding.xml.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'interface-definitions/interfaces-bonding.xml.in') diff --git a/interface-definitions/interfaces-bonding.xml.in b/interface-definitions/interfaces-bonding.xml.in index 4382433b2..846f6eb54 100644 --- a/interface-definitions/interfaces-bonding.xml.in +++ b/interface-definitions/interfaces-bonding.xml.in @@ -75,7 +75,7 @@ combine IP address and port to make hash - (layer2\+3|layer3\+4|layer2) + ^(layer2\+3|layer3\+4|layer2)$ hash-policy must be layer2 layer2+3 or layer3+4 @@ -132,7 +132,7 @@ Distribute based on MAC address - (802.3ad|active-backup|broadcast|round-robin|transmit-load-balance|adaptive-load-balance|xor-hash) + ^(802.3ad|active-backup|broadcast|round-robin|transmit-load-balance|adaptive-load-balance|xor-hash)$ mode must be 802.3ad, active-backup, broadcast, round-robin, transmit-load-balance, adaptive-load-balance, or xor -- cgit v1.2.3