summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-07-05 08:47:54 +0200
committerChristian Breunig <christian@breunig.cc>2024-07-05 08:53:48 +0200
commit0c9499c5b3f7cc053c1f29ecf28d679c1a3156e2 (patch)
treef8fa3c702a2fda9c96fb19645dd2e4c4637f3f56 /interface-definitions
parent5a6ac65fe0684fc5298de3daa8582294ac387b46 (diff)
downloadvyos-1x-0c9499c5b3f7cc053c1f29ecf28d679c1a3156e2.tar.gz
vyos-1x-0c9499c5b3f7cc053c1f29ecf28d679c1a3156e2.zip
wireless: T6496: use mac-address validator on BSSID and move it up one CLI level
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/interfaces_wireless.xml.in22
1 files changed, 13 insertions, 9 deletions
diff --git a/interface-definitions/interfaces_wireless.xml.in b/interface-definitions/interfaces_wireless.xml.in
index 0f52812db..fdcb79b19 100644
--- a/interface-definitions/interfaces_wireless.xml.in
+++ b/interface-definitions/interfaces_wireless.xml.in
@@ -723,15 +723,6 @@
<help>Wireless security settings</help>
</properties>
<children>
- <leafNode name="bssid">
- <properties>
- <help>Basic Service Set Identifier (BSSID)</help>
- <constraint>
- <regex>([0-9a-fA-F]{2}:){5}[0-9a-fA-F]{2}</regex>
- </constraint>
- <constraintErrorMessage>Invalid BSSID</constraintErrorMessage>
- </properties>
- </leafNode>
<node name="station-address">
<properties>
<help>Station MAC address based authentication</help>
@@ -950,6 +941,19 @@
<constraintErrorMessage>Invalid SSID</constraintErrorMessage>
</properties>
</leafNode>
+ <leafNode name="bssid">
+ <properties>
+ <help>Basic Service Set Identifier (BSSID) - currently station mode only</help>
+ <valueHelp>
+ <format>macaddr</format>
+ <description>BSSID (MAC) address</description>
+ </valueHelp>
+ <constraint>
+ <validator name="mac-address"/>
+ </constraint>
+ <constraintErrorMessage>Invalid BSSID</constraintErrorMessage>
+ </properties>
+ </leafNode>
<leafNode name="type">
<properties>
<help>Wireless device type for this interface</help>