summaryrefslogtreecommitdiff
path: root/bgpd
diff options
context:
space:
mode:
authorPaul Jakma <paul.jakma@sun.com>2006-05-23 22:27:55 +0000
committerPaul Jakma <paul.jakma@sun.com>2006-05-23 22:27:55 +0000
commit369688c0c7a325e889e841afc2d59430baf079a2 (patch)
tree55c5e916f607609fc0e242ca874ff14758cc5f44 /bgpd
parent825cd49ead7a9222f93b37f65030f5ff325cd4ab (diff)
[bgpd] expand vty help for neighbor ... update-source
2006-05-23 Paul Jakma <paul.jakma@sun.com> * bgp_vty.c: (neighbor_update_source_cmd) Expand tab completion to make it clear it takes both address and ifname.
Diffstat (limited to 'bgpd')
-rw-r--r--bgpd/ChangeLog5
-rw-r--r--bgpd/bgp_vty.c12
2 files changed, 13 insertions, 4 deletions
diff --git a/bgpd/ChangeLog b/bgpd/ChangeLog
index 7f4f3f1a..5176e2b6 100644
--- a/bgpd/ChangeLog
+++ b/bgpd/ChangeLog
@@ -1,3 +1,8 @@
+2006-05-23 Paul Jakma <paul.jakma@sun.com>
+
+ * bgp_vty.c: (neighbor_update_source_cmd) Expand tab completion
+ to make it clear it takes both address and ifname.
+
2006-05-12 Paul Jakma <paul.jakma@sun.com>
* bgp_attr.c: (bgp_packet_attribute) Remove dead code, Coverity
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c
index 520ddf95..ec4b6c22 100644
--- a/bgpd/bgp_vty.c
+++ b/bgpd/bgp_vty.c
@@ -2767,13 +2767,18 @@ peer_update_source_vty (struct vty *vty, const char *peer_str,
return CMD_SUCCESS;
}
+#define BGP_UPDATE_SOURCE_STR "(A.B.C.D|WORD)"
+#define BGP_UPDATE_SOURCE_HELP_STR \
+ "IPv4 address\n" \
+ "Interface name\n"
+
DEFUN (neighbor_update_source,
neighbor_update_source_cmd,
- NEIGHBOR_CMD2 "update-source WORD",
+ NEIGHBOR_CMD2 "update-source " BGP_UPDATE_SOURCE_STR,
NEIGHBOR_STR
NEIGHBOR_ADDR_STR2
"Source of routing updates\n"
- "Interface name\n")
+ BGP_UPDATE_SOURCE_HELP_STR)
{
return peer_update_source_vty (vty, argv[0], argv[1]);
}
@@ -2784,8 +2789,7 @@ DEFUN (no_neighbor_update_source,
NO_STR
NEIGHBOR_STR
NEIGHBOR_ADDR_STR2
- "Source of routing updates\n"
- "Interface name\n")
+ "Source of routing updates\n")
{
return peer_update_source_vty (vty, argv[0], NULL);
}