Skip to content

Commit

Permalink
Merge pull request #17459 from opensourcerouting/fix/disable_rpki_com…
Browse files Browse the repository at this point in the history
…munity_by_default

bgpd: Disable sending ROV extended community by default
  • Loading branch information
donaldsharp authored Nov 23, 2024
2 parents 48306ba + 8cc6359 commit d745f4e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
4 changes: 1 addition & 3 deletions bgpd/bgp_vty.c
Original file line number Diff line number Diff line change
Expand Up @@ -19132,9 +19132,7 @@ static void bgp_config_write_peer_af(struct vty *vty, struct bgp *bgp,

if (peergroup_af_flag_check(peer, afi, safi,
PEER_FLAG_SEND_EXT_COMMUNITY_RPKI))
vty_out(vty,
" no neighbor %s send-community extended rpki\n",
addr);
vty_out(vty, " neighbor %s send-community extended rpki\n", addr);
}

/* Default information */
Expand Down
10 changes: 2 additions & 8 deletions bgpd/bgpd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1569,19 +1569,13 @@ struct peer *peer_new(struct bgp *bgp)
/* Set default flags. */
FOREACH_AFI_SAFI (afi, safi) {
SET_FLAG(peer->af_flags[afi][safi], PEER_FLAG_SEND_COMMUNITY);
SET_FLAG(peer->af_flags[afi][safi],
PEER_FLAG_SEND_EXT_COMMUNITY);
SET_FLAG(peer->af_flags[afi][safi],
PEER_FLAG_SEND_EXT_COMMUNITY_RPKI);
SET_FLAG(peer->af_flags[afi][safi], PEER_FLAG_SEND_EXT_COMMUNITY);
SET_FLAG(peer->af_flags[afi][safi],
PEER_FLAG_SEND_LARGE_COMMUNITY);

SET_FLAG(peer->af_flags_invert[afi][safi],
PEER_FLAG_SEND_COMMUNITY);
SET_FLAG(peer->af_flags_invert[afi][safi],
PEER_FLAG_SEND_EXT_COMMUNITY);
SET_FLAG(peer->af_flags_invert[afi][safi],
PEER_FLAG_SEND_EXT_COMMUNITY_RPKI);
SET_FLAG(peer->af_flags_invert[afi][safi], PEER_FLAG_SEND_EXT_COMMUNITY);
SET_FLAG(peer->af_flags_invert[afi][safi],
PEER_FLAG_SEND_LARGE_COMMUNITY);
peer->addpath_type[afi][safi] = BGP_ADDPATH_NONE;
Expand Down
2 changes: 1 addition & 1 deletion doc/user/bgp.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1803,7 +1803,7 @@ Configuring Peers
Send the extended RPKI communities to the peer. RPKI extended community
can be send only to iBGP and eBGP-OAD peers.

Default: enabled.
Default: disabled.

.. clicmd:: neighbor PEER weight WEIGHT

Expand Down
1 change: 1 addition & 0 deletions tests/topotests/bgp_rpki_topo1/r2/bgpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ router bgp 65002
neighbor 192.168.4.4 timers connect 1
address-family ipv4 unicast
neighbor 192.168.4.4 next-hop-self
neighbor 192.168.4.4 send-community extended rpki
exit-address-family
!
router bgp 65002 vrf vrf10
Expand Down

0 comments on commit d745f4e

Please sign in to comment.