]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Fix bgp auto-shutdown behavior
authorPascal Mathis <mail@pascalmathis.com>
Sat, 7 Jul 2018 11:14:55 +0000 (13:14 +0200)
committerPascal Mathis <mail@pascalmathis.com>
Sat, 7 Jul 2018 11:14:55 +0000 (13:14 +0200)
commit76af525b645a22498146a72053a0a541298c25e6
tree5829efe15a224d923f6511aba183b09ccead0f2f
parent76f17a8cc4346efabe5f87b5b2578ed6c8ee6fbf
bgpd: Fix bgp auto-shutdown behavior

The current behavior of the `bgp default shutdown` command is to set the
state of all newly configured peers to shutdown. This leads to a problem
when restarting bgpd, because all peers will then be seen as newly
configured, which leads to all peers being set to shutdown after each
restart.

This behavior is undesired and not common when comparing the
implementation against other vendors. This commit moves the `bgp default
shutdown` configuration underneath the peer-group and peer
configuration, to ensure that existing peers will not be set to shutdown
after a daemon restart.

Signed-off-by: Pascal Mathis <mail@pascalmathis.com>
bgpd/bgpd.c