diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-09-27 14:05:22 +0000 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2023-09-28 15:06:56 +0000 |
commit | 8953f97829b1ae583d5b9b2bd47edc8095a8f144 (patch) | |
tree | b0fbf5ad5383a0f54df23ed5ea3d65afff5edf7e /interface-definitions/include | |
parent | 7c2a0e781e2391f50738e2b29011dfd25b60075c (diff) | |
download | vyos-1x-8953f97829b1ae583d5b9b2bd47edc8095a8f144.tar.gz vyos-1x-8953f97829b1ae583d5b9b2bd47edc8095a8f144.zip |
T5165: Add option protocol for policy local-route
Add option `protocol` for policy local-route
set policy local-route rule 100 destination '192.0.2.12'
set policy local-route rule 100 protocol 'tcp'
set policy local-route rule 100 set table '100'
(cherry picked from commit 96b8b38a3c17aa08fa964eef9141cf89f1c1d442)
Diffstat (limited to 'interface-definitions/include')
-rw-r--r-- | interface-definitions/include/policy/local-route_rule_protocol.xml.i | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/interface-definitions/include/policy/local-route_rule_protocol.xml.i b/interface-definitions/include/policy/local-route_rule_protocol.xml.i new file mode 100644 index 000000000..57582eb37 --- /dev/null +++ b/interface-definitions/include/policy/local-route_rule_protocol.xml.i @@ -0,0 +1,21 @@ +<!-- include start from policy/local-route_rule_protocol.xml.i --> +<leafNode name="protocol"> + <properties> + <help>Protocol to match (protocol name or number)</help> + <completionHelp> + <script>${vyos_completion_dir}/list_protocols.sh</script> + </completionHelp> + <valueHelp> + <format>u32:0-255</format> + <description>IP protocol number</description> + </valueHelp> + <valueHelp> + <format><protocol></format> + <description>IP protocol name</description> + </valueHelp> + <constraint> + <validator name="ip-protocol"/> + </constraint> + </properties> +</leafNode> +<!-- include end --> |