summaryrefslogtreecommitdiff
path: root/interface-definitions/include
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2023-09-28 15:37:22 +0100
committerGitHub <noreply@github.com>2023-09-28 15:37:22 +0100
commit448c140c0717f713e0eeb5d9d9bce3f94da198f6 (patch)
treeeb82e61e1246125b2146babf3848f4342624f50d /interface-definitions/include
parent6ffb104ada0af428ee293dc094a8f624725e9bbc (diff)
parent96b8b38a3c17aa08fa964eef9141cf89f1c1d442 (diff)
downloadvyos-1x-448c140c0717f713e0eeb5d9d9bce3f94da198f6.tar.gz
vyos-1x-448c140c0717f713e0eeb5d9d9bce3f94da198f6.zip
Merge pull request #2313 from sever-sever/T5165
T5165: Add option protocol for policy local-route
Diffstat (limited to 'interface-definitions/include')
-rw-r--r--interface-definitions/include/policy/local-route_rule_protocol.xml.i21
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>&lt;protocol&gt;</format>
+ <description>IP protocol name</description>
+ </valueHelp>
+ <constraint>
+ <validator name="ip-protocol"/>
+ </constraint>
+ </properties>
+</leafNode>
+<!-- include end -->