diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-04-29 19:51:50 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-04-29 19:51:50 +0200 |
commit | 80ecb1b7aaab47edeb355c3b74a763e940d88179 (patch) | |
tree | cb0951a838ccfafe7a154cf566461ece0280f0a9 /interface-definitions/interfaces-bonding.xml.in | |
parent | 52155b9086fa18083efb601bcc9ba8807f147686 (diff) | |
download | vyos-1x-80ecb1b7aaab47edeb355c3b74a763e940d88179.tar.gz vyos-1x-80ecb1b7aaab47edeb355c3b74a763e940d88179.zip |
xml: T4047: use full string match in the regex validator
Diffstat (limited to 'interface-definitions/interfaces-bonding.xml.in')
-rw-r--r-- | interface-definitions/interfaces-bonding.xml.in | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/interface-definitions/interfaces-bonding.xml.in b/interface-definitions/interfaces-bonding.xml.in index 5ae67a672..96dede723 100644 --- a/interface-definitions/interfaces-bonding.xml.in +++ b/interface-definitions/interfaces-bonding.xml.in @@ -7,7 +7,7 @@ <help>Bonding Interface/Link Aggregation</help> <priority>320</priority> <constraint> - <regex>^bond[0-9]+$</regex> + <regex>bond[0-9]+</regex> </constraint> <constraintErrorMessage>Bonding interface must be named bondN</constraintErrorMessage> <valueHelp> @@ -85,7 +85,7 @@ <description>combine encapsulated IP address and port to make hash</description> </valueHelp> <constraint> - <regex>^(layer2\+3|layer3\+4|layer2|encap2\+3|encap3\+4)$</regex> + <regex>(layer2\+3|layer3\+4|layer2|encap2\+3|encap3\+4)</regex> </constraint> <constraintErrorMessage>hash-policy must be layer2 layer2+3 layer3+4 encap2+3 or encap3+4</constraintErrorMessage> </properties> @@ -122,7 +122,7 @@ <description>Request partner to transmit LACPDUs every 1 second</description> </valueHelp> <constraint> - <regex>^(slow|fast)$</regex> + <regex>(slow|fast)</regex> </constraint> </properties> <defaultValue>slow</defaultValue> @@ -162,7 +162,7 @@ <description>Distribute based on MAC address</description> </valueHelp> <constraint> - <regex>^(802.3ad|active-backup|broadcast|round-robin|transmit-load-balance|adaptive-load-balance|xor-hash)$</regex> + <regex>(802.3ad|active-backup|broadcast|round-robin|transmit-load-balance|adaptive-load-balance|xor-hash)</regex> </constraint> <constraintErrorMessage>mode must be 802.3ad, active-backup, broadcast, round-robin, transmit-load-balance, adaptive-load-balance, or xor</constraintErrorMessage> </properties> |