summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-02-04 15:08:00 +0100
committerChristian Breunig <christian@breunig.cc>2023-02-04 15:36:04 +0100
commit11d8438365ab4500ca4e3296f868df190b0cbbdc (patch)
tree051e436306320b0d8f974fcc5dde7e8ecda76c3a
parent8fad7aa7ec3cb2db04593006d5862deecb4553ef (diff)
downloadvyos-1x-11d8438365ab4500ca4e3296f868df190b0cbbdc.tar.gz
vyos-1x-11d8438365ab4500ca4e3296f868df190b0cbbdc.zip
bgp: T4817: improve help and constraint error messages
-rw-r--r--interface-definitions/include/bgp/neighbor-local-role.xml.i6
1 files changed, 3 insertions, 3 deletions
diff --git a/interface-definitions/include/bgp/neighbor-local-role.xml.i b/interface-definitions/include/bgp/neighbor-local-role.xml.i
index 3f15802b1..6ddb4908f 100644
--- a/interface-definitions/include/bgp/neighbor-local-role.xml.i
+++ b/interface-definitions/include/bgp/neighbor-local-role.xml.i
@@ -1,7 +1,7 @@
<!-- include start from bgp/neigbhor-local-role.xml.i -->
<tagNode name="local-role">
<properties>
- <help>Local role for this bgp session.</help>
+ <help>Local role for BGP neighbor (RFC9234)</help>
<completionHelp>
<list>customer peer provider rs-client rs-server</list>
</completionHelp>
@@ -28,12 +28,12 @@
<constraint>
<regex>(provider|rs-server|rs-client|customer|peer)</regex>
</constraint>
- <constraintErrorMessage>Invalid Option</constraintErrorMessage>
+ <constraintErrorMessage>BGP local-role must be one of the following: customer, peer, provider, rs-client or rs-server</constraintErrorMessage>
</properties>
<children>
<leafNode name="strict">
<properties>
- <help>Your neighbor must send you Capability with the value of his role. Otherwise, a Role Mismatch Notification will be sent.</help>
+ <help>Neighbor must send this exact capability, otherwise a role missmatch notification will be sent</help>
<valueless/>
</properties>
</leafNode>