summaryrefslogtreecommitdiff
path: root/interface-definitions/include/constraint/interface-name.xml.i
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-04-01 13:14:30 +0200
committerChristian Breunig <christian@breunig.cc>2023-04-01 13:14:30 +0200
commit2265bb4dc27965da3dce7e3f476366b7d1e911f3 (patch)
treefc3731ce4f1625b2a20a71c77db2e4fe3992657d /interface-definitions/include/constraint/interface-name.xml.i
parent15922541cef35956107e0b32ee952fee05928dbd (diff)
downloadvyos-1x-2265bb4dc27965da3dce7e3f476366b7d1e911f3.tar.gz
vyos-1x-2265bb4dc27965da3dce7e3f476366b7d1e911f3.zip
xml: include building block file name should end with .i and not .in
Diffstat (limited to 'interface-definitions/include/constraint/interface-name.xml.i')
-rw-r--r--interface-definitions/include/constraint/interface-name.xml.i4
1 files changed, 4 insertions, 0 deletions
diff --git a/interface-definitions/include/constraint/interface-name.xml.i b/interface-definitions/include/constraint/interface-name.xml.i
new file mode 100644
index 000000000..e540e4418
--- /dev/null
+++ b/interface-definitions/include/constraint/interface-name.xml.i
@@ -0,0 +1,4 @@
+<!-- include start from constraint/interface-name.xml.in -->
+<regex>(bond|br|dum|en|ersp|eth|gnv|ifb|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 -->