diff options
author | John Estabrook <jestabro@vyos.io> | 2022-12-12 15:06:08 -0600 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2022-12-14 08:59:34 -0600 |
commit | f0bc6c62016d285f0645c4b3ba8b1451c40c637f (patch) | |
tree | fc00f4a3ad5fdd1b30f62c3af58f5445d8c0184d /interface-definitions/include/constraint | |
parent | 0c5416e9e629a6f9028c85fe5313f43d3484860a (diff) | |
download | vyos-1x-f0bc6c62016d285f0645c4b3ba8b1451c40c637f.tar.gz vyos-1x-f0bc6c62016d285f0645c4b3ba8b1451c40c637f.zip |
validators: T4875: use file-path to replace validator 'interface-name'
Diffstat (limited to 'interface-definitions/include/constraint')
-rw-r--r-- | interface-definitions/include/constraint/interface-name.xml.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/interface-definitions/include/constraint/interface-name.xml.in b/interface-definitions/include/constraint/interface-name.xml.in new file mode 100644 index 000000000..2d1f7b757 --- /dev/null +++ b/interface-definitions/include/constraint/interface-name.xml.in @@ -0,0 +1,4 @@ +<!-- include start from constraint/interface-name.xml.in --> +<regex>(bond|br|dum|en|ersp|eth|gnv|lan|l2tp|l2tpeth|macsec|peth|ppp|pppoe|pptp|sstp|tun|veth|vti|vtun|vxlan|wg|wlan|wwan)[0-9]+(.\d+)?|lo</regex> +<validator name="file-path --lookup-path /sys/class/net --directory"/> +<!-- include end --> |