summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorNicolas Fort <nicolasfort1988@gmail.com>2022-05-29 16:00:12 +0000
committerNicolas Fort <nicolasfort1988@gmail.com>2022-05-29 16:44:14 +0000
commitfda276bd0bb60f0ac4289103956e07c66c8e0f1e (patch)
treede05481c3d6184439a0e343e3f50594ecd8396f7 /interface-definitions
parent96a88c1990a974c5291553e8b9cd3220795366fb (diff)
downloadvyos-1x-fda276bd0bb60f0ac4289103956e07c66c8e0f1e.tar.gz
vyos-1x-fda276bd0bb60f0ac4289103956e07c66c8e0f1e.zip
Policy: T4450: Expand options for ip|ipv6 address match. Now support prefix-len on both matches. Also change help properties of route-source node.
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/policy.xml.in28
1 files changed, 26 insertions, 2 deletions
diff --git a/interface-definitions/policy.xml.in b/interface-definitions/policy.xml.in
index d4aa4e024..aaed6286f 100644
--- a/interface-definitions/policy.xml.in
+++ b/interface-definitions/policy.xml.in
@@ -637,6 +637,18 @@
</completionHelp>
</properties>
</leafNode>
+ <leafNode name="prefix-len">
+ <properties>
+ <help>IP prefix-length to match</help>
+ <valueHelp>
+ <format>u32:0-32</format>
+ <description>Prefix length</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 0-32"/>
+ </constraint>
+ </properties>
+ </leafNode>
</children>
</node>
<!-- T3304 but it overwrite node nexthop
@@ -692,7 +704,7 @@
</leafNode>
<leafNode name="prefix-len">
<properties>
- <help>IP prefix-lenght to match</help>
+ <help>IP prefix-length to match</help>
<valueHelp>
<format>u32:0-32</format>
<description>Prefix length</description>
@@ -729,7 +741,7 @@
</node>
<node name="route-source">
<properties>
- <help>test</help>
+ <help>Match advertising source address of route</help>
</properties>
<children>
<leafNode name="access-list">
@@ -795,6 +807,18 @@
</completionHelp>
</properties>
</leafNode>
+ <leafNode name="prefix-len">
+ <properties>
+ <help>IPv6 prefix-length to match</help>
+ <valueHelp>
+ <format>u32:0-128</format>
+ <description>Prefix length</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 0-128"/>
+ </constraint>
+ </properties>
+ </leafNode>
</children>
</node>
<leafNode name="nexthop">