summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_vty.c
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/bgp_vty.c
parent825cd49ead7a9222f93b37f65030f5ff325cd4ab (diff)
downloadquagga-369688c0c7a325e889e841afc2d59430baf079a2.tar.bz2
quagga-369688c0c7a325e889e841afc2d59430baf079a2.tar.xz
[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/bgp_vty.c')
-rw-r--r--bgpd/bgp_vty.c12
1 files changed, 8 insertions, 4 deletions
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);
}