Browse Source

[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.
Paul Jakma 11 years ago
parent
commit
f7e0db8069
1 changed files with 2 additions and 2 deletions
  1. 2 2
      bgpd/bgp_vty.c

+ 2 - 2
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,