From 8953f97829b1ae583d5b9b2bd47edc8095a8f144 Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Wed, 27 Sep 2023 14:05:22 +0000 Subject: 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) --- .../include/policy/local-route_rule_protocol.xml.i | 21 +++++++++++++++++++++ interface-definitions/policy-local-route.xml.in | 1 + 2 files changed, 22 insertions(+) create mode 100644 interface-definitions/include/policy/local-route_rule_protocol.xml.i (limited to 'interface-definitions') 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 @@ + + + + Protocol to match (protocol name or number) + + + + + u32:0-255 + IP protocol number + + + <protocol> + IP protocol name + + + + + + + diff --git a/interface-definitions/policy-local-route.xml.in b/interface-definitions/policy-local-route.xml.in index 8619e839e..0a5b81dfa 100644 --- a/interface-definitions/policy-local-route.xml.in +++ b/interface-definitions/policy-local-route.xml.in @@ -53,6 +53,7 @@ + #include Source address or prefix -- cgit v1.2.3