summaryrefslogtreecommitdiff
path: root/interface-definitions/include/constraint
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-01-22 18:53:08 +0100
committerGitHub <noreply@github.com>2023-01-22 18:53:08 +0100
commite090c10ea0767bf144f64966d6d0f52fd28b5837 (patch)
tree37ca30e7ecf4f65ac0cea62e911cab072bc0caae /interface-definitions/include/constraint
parente6670b7277147ddf3fa72a9522069fef7d9430f4 (diff)
parentddd2a3e01b2f92952d035a5a5454c233be92ef3f (diff)
downloadvyos-1x-e090c10ea0767bf144f64966d6d0f52fd28b5837.tar.gz
vyos-1x-e090c10ea0767bf144f64966d6d0f52fd28b5837.zip
Merge pull request #1774 from c-po/t4875-backport
validators: T4875: use file-path to replace validator 'interface-name' (backport)
Diffstat (limited to 'interface-definitions/include/constraint')
-rw-r--r--interface-definitions/include/constraint/interface-name.xml.in4
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 -->