[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.
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c
index e79e477..e97b4c9 100644
--- a/bgpd/bgp_vty.c
+++ b/bgpd/bgp_vty.c
@@ -2808,10 +2808,10 @@
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,