diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-11-03 17:39:19 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-11-03 17:39:19 +0100 |
commit | 4ae434d50337b6a1543176b0b86e938fc0663626 (patch) | |
tree | 9e726851fcf21b7f27200605718f3ebb6fd75f0d /interface-definitions/include/policy/route-ipv4.xml.i | |
parent | f11b76ec56f9a94c4cfb435081c7b9a5986c060c (diff) | |
download | vyos-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/policy/route-ipv4.xml.i')
-rw-r--r-- | interface-definitions/include/policy/route-ipv4.xml.i | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/interface-definitions/include/policy/route-ipv4.xml.i b/interface-definitions/include/policy/route-ipv4.xml.i new file mode 100644 index 000000000..1f717a1a4 --- /dev/null +++ b/interface-definitions/include/policy/route-ipv4.xml.i @@ -0,0 +1,45 @@ +<!-- include start from policy/route-ipv4.xml.i --> +<node name="source"> + <properties> + <help>Source parameters</help> + </properties> + <children> + #include <include/firewall/address.xml.i> + #include <include/firewall/source-destination-group.xml.i> + #include <include/firewall/mac-address.xml.i> + #include <include/firewall/port.xml.i> + </children> +</node> +<node name="icmp"> + <properties> + <help>ICMP type and code information</help> + </properties> + <children> + <leafNode name="code"> + <properties> + <help>ICMP code (0-255)</help> + <valueHelp> + <format>u32:0-255</format> + <description>ICMP code (0-255)</description> + </valueHelp> + <constraint> + <validator name="numeric" argument="--range 0-255"/> + </constraint> + </properties> + </leafNode> + <leafNode name="type"> + <properties> + <help>ICMP type (0-255)</help> + <valueHelp> + <format>u32:0-255</format> + <description>ICMP type (0-255)</description> + </valueHelp> + <constraint> + <validator name="numeric" argument="--range 0-255"/> + </constraint> + </properties> + </leafNode> + #include <include/firewall/icmp-type-name.xml.i> + </children> +</node> +<!-- include end --> |