mirror_frr/bgpd
Donald Sharp f3d20a2aa5 bgpd: When removing v6 address being used as a nexthop ensure peer is reset
With v6 interface based peering, we send the global as well as the LL address
as nexthops to the peer.  When either of these were removed on the interface
we were not necessarily resetting the connection.  Leaving bgp in a state
where the peer had reachability for addresses that are no longer in use.

Modify the code that when we receive an interface address deletion
event.  Check to see that we are using the v6 address as nexthops
for that peer and if so, tell it to reset.

I initially struggled with a hard reset of the peer or a clear but
choose to follow other places in the code that we noticed address
changes that resulted in hard resets.

Ticket: #2799568
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2021-10-04 08:03:38 -04:00
..
rfapi Merge pull request #9546 from proelbtn/add-support-for-perfix-sid-type-5 2021-09-21 11:36:53 -04:00
rfp-example build: properly split CFLAGS from AC_CFLAGS 2021-04-21 15:42:36 +02:00
.gitignore
bgp_addpath_types.h
bgp_addpath.c bgpd, lib, staticd, tests: Convert to using FOREACH_AFI_SAFI 2020-11-14 18:53:03 -05:00
bgp_addpath.h bgp: rename bgp_node to bgp_dest 2020-06-23 17:32:52 +02:00
bgp_advertise.c bgpd: Call bgp_dest_unlock_node() inside bgp_adj_in_remove() 2021-06-11 09:39:23 +03:00
bgp_advertise.h *: require semicolon after DEFINE_<typesafe...> 2021-03-17 06:18:39 +01:00
bgp_aspath.c bgpd: Avoid more assignments within checks (round 2) 2021-06-29 22:27:50 +03:00
bgp_aspath.h bgpd: Replace 65535 with UINT16_MAX 2021-02-02 15:31:12 +02:00
bgp_attr_evpn.c bgpd: Parse EVPN RT-5 NLRI and store gateway IP for EVPN route 2021-06-07 17:58:22 -07:00
bgp_attr_evpn.h bgpd: Data structure for gateway IP overlay Index 2021-06-07 17:58:22 -07:00
bgp_attr.c Merge pull request #9546 from proelbtn/add-support-for-perfix-sid-type-5 2021-09-21 11:36:53 -04:00
bgp_attr.h Merge pull request #9546 from proelbtn/add-support-for-perfix-sid-type-5 2021-09-21 11:36:53 -04:00
bgp_bfd.c bgpd: fix crash during configuration removal 2021-07-14 14:42:48 -03:00
bgp_bfd.h bgpd: improve BFD with timers configuration 2021-03-23 12:40:11 -03:00
bgp_bmp.c *: explicitly print "exit" at the end of every node config 2021-08-23 22:08:20 +03:00
bgp_bmp.h *: require semicolon after DEFINE_<typesafe...> 2021-03-17 06:18:39 +01:00
bgp_btoa.c bgpd: Convert inet_ntoa to %pI4/inet_ntop 2020-10-18 11:22:30 +03:00
bgp_clist.c Merge pull request #9369 from idryzhov/comm-alias-memleaks 2021-08-16 17:24:21 +03:00
bgp_clist.h bgpd: Auto-complete for community lists 2021-08-10 10:56:26 +03:00
bgp_community_alias.c bgpd: fix memory leaks in bgp_alias2community_str 2021-08-11 12:09:15 +03:00
bgp_community_alias.h bgpd: fix memory leaks in bgp_alias2community_str 2021-08-11 12:09:15 +03:00
bgp_community.c bgpd: Fix misleading comments for some parts 2021-08-05 16:29:52 +03:00
bgp_community.h bgpd: Set NO_ADVERTISE community if blackhole community received 2021-01-21 16:00:53 +02:00
bgp_conditional_adv.c bgpd: fix memory leaks when using route-maps 2021-09-15 22:45:23 +03:00
bgp_conditional_adv.h bgpd: add knob to config cond-adv scanner period 2021-07-13 13:19:14 -04:00
bgp_damp.c Revert "bgpd: peer / peer group dampening profiles" 2021-08-03 21:54:47 +03:00
bgp_damp.h Revert "bgpd: peer / peer group dampening profiles" 2021-08-03 21:54:47 +03:00
bgp_debug.c bgpd: Generate and advertise gateway IP overlay index with EVPN RT-5 2021-06-07 17:58:22 -07:00
bgp_debug.h bgpd: Generate and advertise gateway IP overlay index with EVPN RT-5 2021-06-07 17:58:22 -07:00
bgp_dump.c bgpd: rework BGP_MAX_PACKET_SIZE & friends 2021-05-06 11:54:02 -04:00
bgp_dump.h bgpd: Add Support for rfc 8050 MRT add-path 2021-02-11 16:51:41 -08:00
bgp_ecommunity.c bgpd: Add neighbor PEER link-bw-encoding-ieee 2021-08-30 14:21:49 +03:00
bgp_ecommunity.h bgpd: Add neighbor PEER link-bw-encoding-ieee 2021-08-30 14:21:49 +03:00
bgp_encap_tlv.c *: Replace 4/16 integers to IPV4_MAX_BYTELEN/IPV6_MAX_BYTELEN 2021-07-01 23:54:39 +03:00
bgp_encap_tlv.h
bgp_encap_types.h
bgp_errors.c bgpd: Advertise FIB installed routes to bgp peers (Part 2) 2020-11-06 08:46:04 +05:30
bgp_errors.h bgpd: Advertise FIB installed routes to bgp peers (Part 2) 2020-11-06 08:46:04 +05:30
bgp_evpn_mh.c bgpd: No need casting to boolean for boolean 2021-06-29 22:27:50 +03:00
bgp_evpn_mh.h bgpd: Handle EAD/EVI local route updates on VNI RD change 2021-04-27 16:35:24 -07:00
bgp_evpn_private.h bgpd: EVPN route type-5 to type-2 recursive resolution using gateway IP 2021-06-07 17:59:45 -07:00
bgp_evpn_vty.c bgpd: Update legend also for evpn_show_route_rd 2021-09-15 05:18:50 -07:00
bgp_evpn_vty.h bgpd: CLI to advertise gateway IP overlay index 2021-06-07 17:58:22 -07:00
bgp_evpn.c Merge pull request #9422 from pguibert6WIND/update_autort_l3vni 2021-09-28 09:15:34 -07:00
bgp_evpn.h bgpd: Add CLI for overlay index recursive resolution 2021-06-07 17:59:45 -07:00
bgp_filter.c bgpd: add "json" option to "show bgp as-path-access-list" 2021-08-02 15:53:02 -03:00
bgp_filter.h bgpd: add seqno in bgp as-path access-list policy 2021-03-17 22:06:53 -07:00
bgp_flowspec_private.h bgpd, lib: support for flow_label flowspec type 2020-08-21 13:37:08 +02:00
bgp_flowspec_util.c *: unify prefix copying 2021-06-29 16:11:47 +03:00
bgp_flowspec_util.h bgpd: ipv6 flowspec address decoding and validation 2020-08-21 13:37:08 +02:00
bgp_flowspec_vty.c *: Replace s_addr check agains 0 with INADDR_ANY 2020-12-14 21:03:38 +02:00
bgp_flowspec.c bgpd, lib: support for flow_label flowspec type 2020-08-21 13:37:08 +02:00
bgp_flowspec.h bgpd: flowspec code support for ipv6 2020-08-21 13:37:08 +02:00
bgp_fsm.c Merge pull request #9557 from idryzhov/bgp-view-cleanup 2021-09-07 10:14:30 +03:00
bgp_fsm.h bgpd: Address LL peer not NHT when receiving connection attempt 2021-04-15 13:16:28 -04:00
bgp_io.c bgpd: bgp_packet_process_error can access peer after deletion 2021-08-08 08:23:24 -04:00
bgp_io.h bgpd: raise default & max r/w quanta to 64 2019-10-14 18:41:53 +00:00
bgp_keepalives.c *: generously apply const 2019-12-02 15:01:29 +01:00
bgp_keepalives.h
bgp_label.c *: Convert numeric 32 into IPV4_MAX_BITLEN for prefixlen 2021-07-01 23:50:39 +03:00
bgp_label.h bgp: rename bgp_node to bgp_dest 2020-06-23 17:32:52 +02:00
bgp_labelpool.c *: require semicolon after DEFINE_<typesafe...> 2021-03-17 06:18:39 +01:00
bgp_labelpool.h *: require semicolon after DEFINE_<typesafe...> 2021-03-17 06:18:39 +01:00
bgp_lcommunity.c bgpd: Fix misleading comments for some parts 2021-08-05 16:29:52 +03:00
bgp_lcommunity.h bgpd: separate lcommunity validation from tokenizer 2021-01-06 07:18:20 -05:00
bgp_mac.c bgpd: Generate and advertise gateway IP overlay index with EVPN RT-5 2021-06-07 17:58:22 -07:00
bgp_mac.h bgpd: Rework code to use const struct prefix 2020-03-24 07:51:41 -04:00
bgp_main.c *: Drop break after using frr_help_exit() in switch/case 2021-08-25 10:49:05 +03:00
bgp_memory.c Revert "bgpd: peer / peer group dampening profiles" 2021-08-03 21:54:47 +03:00
bgp_memory.h Revert "bgpd: peer / peer group dampening profiles" 2021-08-03 21:54:47 +03:00
bgp_mpath.c bgpd: Add neighbor PEER link-bw-encoding-ieee 2021-08-30 14:21:49 +03:00
bgp_mpath.h bgp: rename bgp_node to bgp_dest 2020-06-23 17:32:52 +02:00
bgp_mplsvpn_snmp.c build: make builddir include path consistent 2021-04-21 15:42:33 +02:00
bgp_mplsvpn_snmp.h bgpd: implement mplsL3VpnVrfRtTable 2021-02-02 09:37:13 +00:00
bgp_mplsvpn.c Merge pull request #9546 from proelbtn/add-support-for-perfix-sid-type-5 2021-09-21 11:36:53 -04:00
bgp_mplsvpn.h Merge pull request #9546 from proelbtn/add-support-for-perfix-sid-type-5 2021-09-21 11:36:53 -04:00
bgp_network.c bgpd: Allow v6 LL peers to work when connected to as well 2021-09-16 08:07:45 -04:00
bgp_network.h bgpd: associate listener with the appropriate bgp instance 2020-09-01 09:42:26 +01:00
bgp_nexthop.c bgpd: EVPN route type-5 to type-2 recursive resolution using gateway IP 2021-06-07 17:59:45 -07:00
bgp_nexthop.h bgpd: EVPN route type-5 to type-2 recursive resolution using gateway IP 2021-06-07 17:59:45 -07:00
bgp_nht.c bgpd: prevent routes loop through itself 2021-07-12 13:57:36 +02:00
bgp_nht.h bgpd: prevent routes loop through itself 2021-07-12 13:57:36 +02:00
bgp_open.c bgpd: Add disable-addpath-rx knob 2021-09-03 15:05:02 +03:00
bgp_open.h bgpd: Add BGP Extended message support 2021-03-04 21:32:36 +02:00
bgp_packet.c bgpd: bgp_announce_route should know if we should force the update or not 2021-10-04 07:59:18 -04:00
bgp_packet.h *: require semicolon after DEFINE_HOOK & co. 2021-03-17 06:18:17 +01:00
bgp_pbr.c bgpd: flowspec redirect vrf uses vrf table instead of allocated table id 2021-08-01 14:38:13 +02:00
bgp_pbr.h bgpd: fallback proto icmp/v6 to appropriate l3 filter 2020-08-21 13:37:08 +02:00
bgp_rd.c bgpd: Convert inet_ntoa to %pI4/inet_ntop 2020-10-18 11:22:30 +03:00
bgp_rd.h bgpd: support for Ethernet Segments and Type-1/EAD routes 2020-08-05 06:46:12 -07:00
bgp_regex.c
bgp_regex.h
bgp_route.c bgpd: bgp_announce_route should know if we should force the update or not 2021-10-04 07:59:18 -04:00
bgp_route.h bgpd: bgp_announce_route should know if we should force the update or not 2021-10-04 07:59:18 -04:00
bgp_routemap_nb_config.c Merge pull request #9439 from ton31337/feature/set_ext_community_to_none 2021-09-01 12:55:45 -04:00
bgp_routemap_nb.c bgpd: Add an ability to set extcommunity to none in route-maps 2021-08-18 14:14:52 +03:00
bgp_routemap_nb.h bgpd: Add an ability to set extcommunity to none in route-maps 2021-08-18 14:14:52 +03:00
bgp_routemap.c Merge pull request #9469 from ton31337/fix/extcommunity_bandwidth_floating_to_hex 2021-09-01 12:56:45 -04:00
bgp_rpki.c bgpd: move rpki source after the server config 2021-09-08 23:43:55 +03:00
bgp_rpki.h bgpd: Convert RPKI states to an enum and use them 2021-03-26 08:23:33 -04:00
bgp_script.c bgpd: Update bgp_script encoders and decoders 2021-06-22 05:03:07 +08:00
bgp_script.h bgpd: Update bgp_script encoders and decoders 2021-06-22 05:03:07 +08:00
bgp_snmp.c bgpd: Fix misleading comments for some parts 2021-08-05 16:29:52 +03:00
bgp_table.c bgpd: Make sure bgp_dest lock/unlock tracepoints works for LTTng as well 2021-09-23 20:00:54 +03:00
bgp_table.h bgpd: Make sure bgp_dest lock/unlock tracepoints works for LTTng as well 2021-09-23 20:00:54 +03:00
bgp_trace.c *: make sure config.h or zebra.h is first 2021-04-23 12:06:35 +02:00
bgp_trace.h bgpd: fix build error seen when lttng is enabled 2021-09-30 08:54:26 -07:00
bgp_updgrp_adv.c bgpd: fix coverity warning 2021-09-15 13:21:21 +03:00
bgp_updgrp_packet.c bgpd: Increase sent prefix count per subgrp when originating default route 2021-07-14 23:55:20 +03:00
bgp_updgrp.c bgpd: Show max packet size per update-group 2021-07-03 11:17:37 +03:00
bgp_updgrp.h bgpd: Remove #if 0 code 2021-01-28 13:57:49 -05:00
bgp_vnc_types.h bgpd: #if ENABLE_BGP_VNC -> #ifdef ENABLE_BGP_VNC 2020-04-01 15:05:26 -04:00
bgp_vpn.c bgpd: Filter BGP routes by prefix version 2021-04-12 10:43:53 +03:00
bgp_vpn.h
bgp_vty.c bgpd: Don't lookup paf structure get straight to the point 2021-09-26 20:17:40 -04:00
bgp_vty.h Revert "bgpd: convert global config to transactional cli" 2021-08-03 23:36:31 +03:00
bgp_zebra.c bgpd: When removing v6 address being used as a nexthop ensure peer is reset 2021-10-04 08:03:38 -04:00
bgp_zebra.h bgpd: add no-cli for srv6 on bgpd-side 2021-09-13 22:38:25 +00:00
bgpd.c bgpd: bgp_announce_route should know if we should force the update or not 2021-10-04 07:59:18 -04:00
bgpd.conf.sample2
bgpd.h Merge pull request #9546 from proelbtn/add-support-for-perfix-sid-type-5 2021-09-21 11:36:53 -04:00
IMPLEMENTATION.txt
Makefile
subdir.am Revert "bgpd: bgp northbound callbacks prototypes" 2021-08-03 23:36:31 +03:00