mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-24 21:19:22 +00:00
Merge pull request #12626 from opensourcerouting/fix/bgpd_neighbor_password_unnumbered
bgpd: Warn user about mixed order of commands executed
This commit is contained in:
commit
930e01aae1
@ -521,10 +521,8 @@ DEFUN (neighbor_bfd_check_controlplane_failure,
|
||||
else
|
||||
idx_peer = 1;
|
||||
peer = peer_and_group_lookup_vty(vty, argv[idx_peer]->arg);
|
||||
if (!peer) {
|
||||
vty_out(vty, "%% Specify remote-as or peer-group commands first\n");
|
||||
if (!peer)
|
||||
return CMD_WARNING_CONFIG_FAILED;
|
||||
}
|
||||
|
||||
if (CHECK_FLAG(peer->sflags, PEER_STATUS_GROUP))
|
||||
bgp_group_configure_bfd(peer);
|
||||
|
@ -819,6 +819,9 @@ struct peer *peer_and_group_lookup_vty(struct vty *vty, const char *peer_str)
|
||||
|
||||
if (peer) {
|
||||
if (peer_dynamic_neighbor(peer)) {
|
||||
zlog_warn(
|
||||
"%pBP: Operation not allowed on a dynamic neighbor",
|
||||
peer);
|
||||
vty_out(vty,
|
||||
"%% Operation not allowed on a dynamic neighbor\n");
|
||||
return NULL;
|
||||
@ -830,6 +833,8 @@ struct peer *peer_and_group_lookup_vty(struct vty *vty, const char *peer_str)
|
||||
if (group)
|
||||
return group->conf;
|
||||
|
||||
zlog_warn("Specify remote-as or peer-group commands first before: %s",
|
||||
vty->buf);
|
||||
vty_out(vty, "%% Specify remote-as or peer-group commands first\n");
|
||||
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user