summaryrefslogtreecommitdiff
path: root/interface-definitions/include
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-12-31 11:21:14 +0100
committerChristian Breunig <christian@breunig.cc>2024-01-01 01:01:25 +0100
commit5062f5d313548d6ebb9c07fee6b6d6be25b8f8f0 (patch)
tree4f78e6ce756aa47fd1ff78ea98c84b4a763fa1e1 /interface-definitions/include
parent22d5b2bab254668dd0fe8c543fb1bd0edcbead18 (diff)
downloadvyos-1x-5062f5d313548d6ebb9c07fee6b6d6be25b8f8f0.tar.gz
vyos-1x-5062f5d313548d6ebb9c07fee6b6d6be25b8f8f0.zip
configverify: T5880: raise exception if interfaces sourced form dynamic interfaces
Interfaces matching the following regex (ppp|pppoe|sstpc|l2tp|ipoe)[0-9]+ can not be used as source-interface for e.g. a tunnel. The main reason is that these are dynamic interfaces which come and go from a kernel point of view, thus it's not possible to bind an interface to them.
Diffstat (limited to 'interface-definitions/include')
-rw-r--r--interface-definitions/include/constraint/interface-name.xml.i2
1 files changed, 1 insertions, 1 deletions
diff --git a/interface-definitions/include/constraint/interface-name.xml.i b/interface-definitions/include/constraint/interface-name.xml.i
index 1b14eabf5..3e7c4e667 100644
--- a/interface-definitions/include/constraint/interface-name.xml.i
+++ b/interface-definitions/include/constraint/interface-name.xml.i
@@ -1,4 +1,4 @@
<!-- include start from constraint/interface-name.xml.i -->
-<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>
+<regex>(bond|br|dum|en|ersp|eth|gnv|ifb|ipoe|lan|l2tp|l2tpeth|macsec|peth|ppp|pppoe|pptp|sstp|sstpc|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 -->