summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-06-09 20:06:40 +0200
committerChristian Poessinger <christian@poessinger.com>2020-06-09 21:00:24 +0200
commitdc7654cbc6cd18bd202a3fa52c2afef3fbc11b45 (patch)
treee275de7378d9c278c28f63299c5d7c615b983118 /interface-definitions
parentb821c6302688f47383d4df1cc3d6c7668d846bc4 (diff)
downloadvyos-1x-dc7654cbc6cd18bd202a3fa52c2afef3fbc11b45.tar.gz
vyos-1x-dc7654cbc6cd18bd202a3fa52c2afef3fbc11b45.zip
wwan: T2529: add XML device constraint
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/interfaces-wirelessmodem.xml.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/interface-definitions/interfaces-wirelessmodem.xml.in b/interface-definitions/interfaces-wirelessmodem.xml.in
index 6989dea1b..8b68594da 100644
--- a/interface-definitions/interfaces-wirelessmodem.xml.in
+++ b/interface-definitions/interfaces-wirelessmodem.xml.in
@@ -56,9 +56,12 @@
<description>TTY device name, regular serial port</description>
</valueHelp>
<valueHelp>
- <format>usbXbY.YpZ.Z</format>
+ <format>usbNbXpY</format>
<description>TTY device name, USB based</description>
</valueHelp>
+ <constraint>
+ <regex>^(ttyS[0-9]+|usb[0-9]+b.*)$</regex>
+ </constraint>
</properties>
</leafNode>
#include <include/interface-disable-link-detect.xml.i>