summaryrefslogtreecommitdiff
path: root/interface-definitions/policy.xml.in
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-04-18 13:58:06 +0200
committerChristian Poessinger <christian@poessinger.com>2021-04-18 14:51:45 +0200
commit220312c74b4d73072e6cbc0137785c031a634aae (patch)
treecd65fc6394624df2e278b660c7994a3daf5c57d4 /interface-definitions/policy.xml.in
parentd40dd615f9ea46b28b2e968c2ba4fff18866cf5f (diff)
downloadvyos-1x-220312c74b4d73072e6cbc0137785c031a634aae.tar.gz
vyos-1x-220312c74b4d73072e6cbc0137785c031a634aae.zip
xml: policy: T2425: add additional valueHelp or completionHelp nodes
* community-list gained proper valueHelp nodes * route-map set community gained proper valueHelp nodes * route-map set comm-list now has a completion helper searching in "policy community-list"
Diffstat (limited to 'interface-definitions/policy.xml.in')
-rw-r--r--interface-definitions/policy.xml.in58
1 files changed, 40 insertions, 18 deletions
diff --git a/interface-definitions/policy.xml.in b/interface-definitions/policy.xml.in
index 3a769dea1..cd22052f0 100644
--- a/interface-definitions/policy.xml.in
+++ b/interface-definitions/policy.xml.in
@@ -166,7 +166,7 @@
<properties>
<help>Regular expression to match against an AS path</help>
<valueHelp>
- <format>&lt;asn&gt;</format>
+ <format>txt</format>
<description>AS path regular expression (ex: "64501 64502")</description>
</valueHelp>
</properties>
@@ -201,10 +201,33 @@
#include <include/policy/description.xml.i>
<leafNode name="regex">
<properties>
- <help>Regular expression to match against a community list</help>
+ <help>Regular expression to match against a community-list</help>
+ <completionHelp>
+ <list>local-AS no-advertise no-export internet additive</list>
+ </completionHelp>
<valueHelp>
<format>&lt;aa:nn&gt;</format>
- <description>Community list regular expression or one of: internet, local-AS, no-advertise, no-export</description>
+ <description>Community number in AA:NN format</description>
+ </valueHelp>
+ <valueHelp>
+ <format>local-AS</format>
+ <description>Well-known communities value NO_EXPORT_SUBCONFED 0xFFFFFF03</description>
+ </valueHelp>
+ <valueHelp>
+ <format>no-advertise</format>
+ <description>Well-known communities value NO_ADVERTISE 0xFFFFFF02</description>
+ </valueHelp>
+ <valueHelp>
+ <format>no-export</format>
+ <description>Well-known communities value NO_EXPORT 0xFFFFFF01</description>
+ </valueHelp>
+ <valueHelp>
+ <format>internet</format>
+ <description>Well-known communities value 0</description>
+ </valueHelp>
+ <valueHelp>
+ <format>additive</format>
+ <description>New value is appended to the existing value</description>
</valueHelp>
</properties>
</leafNode>
@@ -246,11 +269,11 @@
</valueHelp>
<valueHelp>
<format>&lt;rt aa:nn:nn&gt;</format>
- <description>Extended community list regular expression</description>
+ <description>Route Target regular expression</description>
</valueHelp>
<valueHelp>
- <format>&lt;soo aa:nn&gt;</format>
- <description>Extended community list regular expression</description>
+ <format>&lt;soo aa:nn:nn&gt;</format>
+ <description>Site of Origin regular expression</description>
</valueHelp>
</properties>
</leafNode>
@@ -287,7 +310,7 @@
<help>Regular expression to match against a large community list</help>
<valueHelp>
<format>&lt;aa:nn:nn&gt;</format>
- <description>Large community list regular expression</description>
+ <description>Large Community value</description>
</valueHelp>
</properties>
</leafNode>
@@ -913,6 +936,9 @@
<leafNode name="comm-list">
<properties>
<help>BGP communities with a community-list</help>
+ <completionHelp>
+ <path>policy community-list</path>
+ </completionHelp>
<valueHelp>
<format>txt</format>
<description>BGP communities with a community-list</description>
@@ -935,36 +961,32 @@
</completionHelp>
<valueHelp>
<format>&lt;aa:nn&gt;</format>
- <description>Community in 4 octet AS:value format</description>
+ <description>Community number in AA:NN format</description>
</valueHelp>
<valueHelp>
<format>local-AS</format>
- <description>local-AS</description>
+ <description>Well-known communities value NO_EXPORT_SUBCONFED 0xFFFFFF03</description>
</valueHelp>
<valueHelp>
<format>no-advertise</format>
- <description>no-advertise</description>
+ <description>Well-known communities value NO_ADVERTISE 0xFFFFFF02</description>
</valueHelp>
<valueHelp>
<format>no-export</format>
- <description>no-export</description>
+ <description>Well-known communities value NO_EXPORT 0xFFFFFF01</description>
</valueHelp>
<valueHelp>
<format>internet</format>
- <description>internet</description>
+ <description>Well-known communities value 0</description>
</valueHelp>
<valueHelp>
<format>additive</format>
- <description>additive</description>
+ <description>New value is appended to the existing value</description>
</valueHelp>
<valueHelp>
<format>none</format>
- <description>none</description>
+ <description>No community attribute</description>
</valueHelp>
- <!-- Need to add properly validator
- <constraint>
- <regex>^(local-AS|no-advertise|no-export|internet|additive|none)$</regex>
- </constraint> -->
</properties>
</leafNode>
<leafNode name="distance">