if (bgp_option_check(BGP_OPT_NO_FIB))
vty_out(vty, "bgp no-rib\n");
- if (!CHECK_FLAG(bm->flags, BM_FLAG_SEND_EXTRA_DATA_TO_ZEBRA))
- vty_out(vty, "no bgp send-extra-data zebra\n");
+ if (CHECK_FLAG(bm->flags, BM_FLAG_SEND_EXTRA_DATA_TO_ZEBRA))
+ vty_out(vty, "bgp send-extra-data zebra\n");
/* BGP configuration. */
for (ALL_LIST_ELEMENTS(bm->bgp, mnode, mnnode, bgp)) {
bm->socket_buffer = buffer_size;
bm->wait_for_fib = false;
- SET_FLAG(bm->flags, BM_FLAG_SEND_EXTRA_DATA_TO_ZEBRA);
-
bgp_mac_init();
/* init the rd id space.
assign 0th index in the bitfield,
.. clicmd:: bgp send-extra-data zebra
-This Command turns off the ability of BGP to send extra data to zebra.
-In this case it's the AS-Path being used for the path. The default behavior
-in BGP is to send this data and to turn it off enter the no form of the command.
-If extra data was sent to zebra, and this command is turned on there is no
-effort to clean up this data in the rib.
+This command turns on the ability of BGP to send extra data to zebra. Currently,
+it's the AS-Path, communities, and the path selection reason. The default
+behavior in BGP is not to send this data. If the routes were sent to zebra and
+the option is changed, bgpd doesn't reinstall the routes to comply with the new
+setting.
.. _bgp-suppress-fib:
o->fd = -1;
o->max_multipath = MULTIPATH_NUM;
- SET_FLAG(o->config_flags, OSPF6_SEND_EXTRA_DATA_TO_ZEBRA);
o->oi_write_q = list_new();
vty_out(vty, " ospf6 router-id %pI4\n",
&ospf6->router_id_static);
- if (!CHECK_FLAG(ospf6->config_flags,
- OSPF6_SEND_EXTRA_DATA_TO_ZEBRA))
- vty_out(vty, " no ospf6 send-extra-data zebra\n");
+ if (CHECK_FLAG(ospf6->config_flags,
+ OSPF6_SEND_EXTRA_DATA_TO_ZEBRA))
+ vty_out(vty, " ospf6 send-extra-data zebra\n");
/* log-adjacency-changes flag print. */
if (CHECK_FLAG(ospf6->config_flags,
&ospf->router_id_static);
/* zebra opaque attributes configuration. */
- if (!CHECK_FLAG(ospf->config, OSPF_SEND_EXTRA_DATA_TO_ZEBRA))
- vty_out(vty, " no ospf send-extra-data zebra\n");
+ if (CHECK_FLAG(ospf->config, OSPF_SEND_EXTRA_DATA_TO_ZEBRA))
+ vty_out(vty, " ospf send-extra-data zebra\n");
/* ABR type print. */
if (ospf->abr_type != OSPF_ABR_DEFAULT)
ospf_opaque_type11_lsa_init(new);
- SET_FLAG(new->config, OSPF_SEND_EXTRA_DATA_TO_ZEBRA);
-
QOBJ_REG(new, ospf);
new->fd = -1;
!
+bgp send-extra-data zebra
+!
bgp community alias 65001:1 community-r2-1
bgp community alias 65002:2 community-r2-2
bgp community alias 65001:1:1 large-community-r2-1
+!
+bgp send-extra-data zebra
+!
router bgp 65002
no bgp ebgp-requires-policy
neighbor 192.168.1.1 remote-as external
!
+bgp send-extra-data zebra
+!
ipv6 access-list nh1 permit 2001:db8:1::/64
ipv6 access-list nh2 permit 2001:db8:2::/64
ipv6 access-list nh3 permit 2001:db8:3::/64
!
+bgp send-extra-data zebra
+!
router bgp 65002
bgp router-id 10.10.10.2
no bgp ebgp-requires-policy
frr defaults traditional
!
+bgp send-extra-data zebra
+!
hostname r1
password zebra
!
frr defaults traditional
!
+bgp send-extra-data zebra
+!
hostname r2
password zebra
!
!
+bgp send-extra-data zebra
+!
router bgp 65001
no bgp ebgp-requires-policy
neighbor 192.168.1.2 remote-as external
+!
+bgp send-extra-data zebra
+!
router bgp 65002
no bgp ebgp-requires-policy
neighbor 192.168.1.1 remote-as external
ipv6 ospf6 dead-interval 10
!
router ospf6
+ ospf6 send-extra-data zebra
!
ip ospf dead-interval 10
!
router ospf
+ ospf send-extra-data zebra
!
ipv6 ospf6 dead-interval 10
!
router ospf6
+ ospf6 send-extra-data zebra
!
ip ospf dead-interval 10
!
router ospf
+ ospf send-extra-data zebra
!