Inherit solo flag for peer-group members also.
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
struct peer_group *group;
struct listnode *node, *nnode;
+ peer_flag_set(peer, PEER_FLAG_LONESOUL);
+
if (!CHECK_FLAG(peer->sflags, PEER_STATUS_GROUP)) {
peer_lonesoul_or_not(peer, set);
if (peer_established(peer->connection))
peer->password);
/* neighbor solo */
- if (CHECK_FLAG(peer->flags, PEER_FLAG_LONESOUL)) {
- if (!peer_group_active(peer)) {
- vty_out(vty, " neighbor %s solo\n", addr);
- }
- }
+ if (peergroup_flag_check(peer, PEER_FLAG_LONESOUL))
+ vty_out(vty, " neighbor %s solo\n", addr);
/* BGP port */
if (peer->port != BGP_PORT_DEFAULT) {
{PEER_FLAG_CAPABILITY_FQDN, 0, peer_change_none},
{PEER_FLAG_AS_LOOP_DETECTION, 0, peer_change_none},
{PEER_FLAG_EXTENDED_LINK_BANDWIDTH, 0, peer_change_none},
+ {PEER_FLAG_LONESOUL, 0, peer_change_reset_out},
{0, 0, 0}};
static const struct peer_flag_action peer_af_flag_action_list[] = {
.. clicmd:: neighbor PEER solo
This command is used to indicate that routes advertised by the peer
- should not be reflected back to the peer. This command only is only
- meaningful when there is a single peer defined in the peer-group.
+ should not be reflected back to the peer.
.. clicmd:: show [ip] bgp peer-group [json]