summaryrefslogtreecommitdiff
path: root/interface-definitions/include/firewall
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-01-08 18:49:22 +0100
committerGitHub <noreply@github.com>2024-01-08 18:49:22 +0100
commit54c7a301b9dad792ab437751ac693c7c068770fd (patch)
tree9cc8ecec56bd40cfa6b0b3ebdaaed16688bc0718 /interface-definitions/include/firewall
parent48c09cb91079733e4c5517a22b5345ff14d66059 (diff)
parent02db800b3aaa4b5c7de5564271c0ea37e895915a (diff)
downloadvyos-1x-54c7a301b9dad792ab437751ac693c7c068770fd.tar.gz
vyos-1x-54c7a301b9dad792ab437751ac693c7c068770fd.zip
Merge pull request #2771 from nicolas-fort/T5896
T5896: firewall: backport interface validator for firewall rules.
Diffstat (limited to 'interface-definitions/include/firewall')
-rw-r--r--interface-definitions/include/firewall/match-interface.xml.i6
1 files changed, 4 insertions, 2 deletions
diff --git a/interface-definitions/include/firewall/match-interface.xml.i b/interface-definitions/include/firewall/match-interface.xml.i
index 8be97c3ed..9f720ab37 100644
--- a/interface-definitions/include/firewall/match-interface.xml.i
+++ b/interface-definitions/include/firewall/match-interface.xml.i
@@ -4,6 +4,7 @@
<help>Match interface</help>
<completionHelp>
<script>${vyos_completion_dir}/list_interfaces</script>
+ <path>vrf name</path>
</completionHelp>
<valueHelp>
<format>txt</format>
@@ -18,7 +19,8 @@
<description>Inverted interface name to match</description>
</valueHelp>
<constraint>
- #include <include/constraint/interface-name-with-wildcard-and-inverted.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]?)(\*?)(.+)?|(\!?)lo</regex>
+ <validator name="vrf-name"/>
</constraint>
</properties>
</leafNode>
@@ -38,4 +40,4 @@
</valueHelp>
</properties>
</leafNode>
-<!-- include end --> \ No newline at end of file
+<!-- include end -->