summaryrefslogtreecommitdiff
path: root/interface-definitions/include/firewall/mac-address.xml.i
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-11-03 17:39:19 +0100
committerChristian Poessinger <christian@poessinger.com>2022-11-03 17:39:19 +0100
commit4ae434d50337b6a1543176b0b86e938fc0663626 (patch)
tree9e726851fcf21b7f27200605718f3ebb6fd75f0d /interface-definitions/include/firewall/mac-address.xml.i
parentf11b76ec56f9a94c4cfb435081c7b9a5986c060c (diff)
downloadvyos-1x-4ae434d50337b6a1543176b0b86e938fc0663626.tar.gz
vyos-1x-4ae434d50337b6a1543176b0b86e938fc0663626.zip
xml: T4795: provide common and re-usable XML definitions for policy
Remove duplicated code and move to single-source of truth.
Diffstat (limited to 'interface-definitions/include/firewall/mac-address.xml.i')
-rw-r--r--interface-definitions/include/firewall/mac-address.xml.i18
1 files changed, 18 insertions, 0 deletions
diff --git a/interface-definitions/include/firewall/mac-address.xml.i b/interface-definitions/include/firewall/mac-address.xml.i
new file mode 100644
index 000000000..83aaf1ce1
--- /dev/null
+++ b/interface-definitions/include/firewall/mac-address.xml.i
@@ -0,0 +1,18 @@
+<!-- include start from firewall/mac-address.xml.i -->
+<leafNode name="mac-address">
+ <properties>
+ <help>MAC address</help>
+ <valueHelp>
+ <format>macaddr;</format>
+ <description>MAC address to match</description>
+ </valueHelp>
+ <valueHelp>
+ <format>!macaddr</format>
+ <description>Match everything except the specified MAC address</description>
+ </valueHelp>
+ <constraint>
+ <validator name="mac-address-firewall"/>
+ </constraint>
+ </properties>
+</leafNode>
+<!-- include end -->