summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Jakma <paul@quagga.net>2009-06-22 11:30:47 +0100
committerPaul Jakma <paul@quagga.net>2009-06-22 11:30:47 +0100
commitf7e0db80693aea7f5fd3d8d4f00e97347c8d0ba5 (patch)
treeb920d5309513724158ea477ae2c8b33190287e53
parentc514adc61d56c3fb6fe5119a7b4b55c79a9c065d (diff)
downloadquagga-f7e0db80693aea7f5fd3d8d4f00e97347c8d0ba5.tar.bz2
quagga-f7e0db80693aea7f5fd3d8d4f00e97347c8d0ba5.tar.xz
[bgpd] Fix 'update-source' command: It doesn't accept interface names
* bgp_vty.c: BGP_UPDATE_SOURCE_STR define should only specify IP addresses, the underlying mechanisms won't do anything useful with interface names. Fix bug #527.
-rw-r--r--bgpd/bgp_vty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c
index e79e4775..e97b4c97 100644
--- a/bgpd/bgp_vty.c
+++ b/bgpd/bgp_vty.c
@@ -2808,10 +2808,10 @@ 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_STR "(A.B.C.D|X:X::X:X)"
#define BGP_UPDATE_SOURCE_HELP_STR \
"IPv4 address\n" \
- "Interface name\n"
+ "IPv6 address\n"
DEFUN (neighbor_update_source,
neighbor_update_source_cmd,