Merge pull request #3191 from donaldsharp/more_vty

bgpd: Add a better breadcrumb for interface based peers
This commit is contained in:
Renato Westphal 2018-10-18 11:54:58 -03:00 committed by GitHub
commit e2f68d82e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2740,7 +2740,8 @@ static int peer_remote_as_vty(struct vty *vty, const char *peer_str,
ret = peer_group_remote_as(bgp, peer_str, &as, as_type);
if (ret < 0) {
vty_out(vty,
"%% Create the peer-group or interface first\n");
"%% Create the peer-group or interface first or specify \"interface\" keyword\n");
vty_out(vty, "%% if using an unnumbered interface neighbor\n");
return CMD_WARNING_CONFIG_FAILED;
}
return CMD_SUCCESS;