mirror_frr/bgpd
Philippe Guibert f8ac50d4b6 bgpd: correctly initialize the IP nexthop of redistributed routes
This is a preliminary work to export redistributed routes from
a given VRF in an VPN network. The exportation works well, when
the label allocation is based on an per-vrf mode, but not on
a per nexthop mode.

To associate a label with a connected nexthop, the nexthop
tracking contexts are used. Until today, there was no tracking
context for redistributed routes. But when using this vpn
allocation mode, one needs to know whether the route is directly
connected or not. When using the nexthop tracking context, the
nexthop attribute of the bgp update needs to have the nexthop
properly set. This was not the case for the mp_nexthop_global_in
attribute which was empty.

This commit is mandatory in order to later use nexthop tracking
context.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2023-03-22 12:06:29 +01:00
..
rfapi Merge pull request #12890 from pguibert6WIND/attr_cleaning_misc 2023-03-07 09:46:24 -05:00
rfp-example *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
.gitignore *: cleanup .gitignore files 2018-09-08 21:30:42 +02:00
bgp_addpath_types.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_addpath.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_addpath.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_advertise.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_advertise.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_aspath.c bgpd: Free previously dup'ed aspath attribute for aggregate routes 2023-03-15 13:34:56 +02:00
bgp_aspath.h Merge pull request #12248 from pguibert6WIND/bgpasdot 2023-02-21 08:01:03 -05:00
bgp_attr_evpn.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_attr_evpn.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_attr.c Merge pull request #12890 from pguibert6WIND/attr_cleaning_misc 2023-03-07 09:46:24 -05:00
bgp_attr.h Merge pull request #12780 from opensourcerouting/spdx-license-id 2023-02-17 09:43:05 -05:00
bgp_bfd.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_bfd.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_bmp.c bgpd: Rename bgp_afi_node_lookup() to bgp_safi_node_lookup() 2023-03-14 12:01:56 +02:00
bgp_bmp.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_btoa.c Merge pull request #12248 from pguibert6WIND/bgpasdot 2023-02-21 08:01:03 -05:00
bgp_clist.c bgpd: Deprecate BGP internet community 2023-02-17 18:53:01 +02:00
bgp_clist.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_community_alias.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_community_alias.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_community.c bgpd: Deprecate BGP internet community 2023-02-17 18:53:01 +02:00
bgp_community.h bgpd: Deprecate BGP internet community 2023-02-17 18:53:01 +02:00
bgp_conditional_adv.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_conditional_adv.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_damp.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_damp.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_debug.c Merge pull request #12248 from pguibert6WIND/bgpasdot 2023-02-21 08:01:03 -05:00
bgp_debug.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_dump.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_dump.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_ecommunity.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_ecommunity.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_encap_tlv.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_encap_tlv.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_encap_types.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_errors.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_errors.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_evpn_mh.c bgpd: Prevent Null pointer deref when outputting data 2023-03-17 15:44:33 -04:00
bgp_evpn_mh.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_evpn_private.h bgpd: Drop afi_t from bgp_evpn_global_node_lookup() 2023-03-14 12:05:58 +02:00
bgp_evpn_vty.c bgpd: Rename bgp_afi_node_lookup() to bgp_safi_node_lookup() 2023-03-14 12:01:56 +02:00
bgp_evpn_vty.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_evpn.c bgpd: Drop afi_t from bgp_evpn_global_node_lookup() 2023-03-14 12:05:58 +02:00
bgp_evpn.h Merge pull request #12780 from opensourcerouting/spdx-license-id 2023-02-17 09:43:05 -05:00
bgp_filter.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_filter.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_flowspec_private.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_flowspec_util.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_flowspec_util.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_flowspec_vty.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_flowspec.c bgpd: Flowspec overflow issue 2023-02-23 13:29:32 -05:00
bgp_flowspec.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_fsm.c bgpd: Always restart timer from scratch in OpenConfirm/Established 2023-03-16 19:23:38 -04:00
bgp_fsm.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_io.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_io.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_keepalives.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_keepalives.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_label.c bgpd: Do not send notification twice when parsing NLRI labels 2023-03-05 20:58:26 +02:00
bgp_label.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_labelpool.c bgpd: use nexthop interface when adding LSP in BGP MPLSVPN 2023-03-22 12:06:29 +01:00
bgp_labelpool.h bgpd: use nexthop interface when adding LSP in BGP MPLSVPN 2023-03-22 12:06:29 +01:00
bgp_lcommunity.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_lcommunity.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_mac.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_mac.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_main.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_memory.c Merge pull request #12780 from opensourcerouting/spdx-license-id 2023-02-17 09:43:05 -05:00
bgp_memory.h Merge pull request #12780 from opensourcerouting/spdx-license-id 2023-02-17 09:43:05 -05:00
bgp_mpath.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_mpath.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_mplsvpn_snmp.c bgpd: Free memory allocated by ecommunity_ecom2str() 2023-03-14 11:07:48 +02:00
bgp_mplsvpn_snmp.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_mplsvpn.c bgpd: use nexthop interface when adding LSP in BGP MPLSVPN 2023-03-22 12:06:29 +01:00
bgp_mplsvpn.h bgpd: add support for l3vpn per-nexthop label 2023-03-22 12:06:29 +01:00
bgp_network.c bgpd: Use interface name instead of pointer value 2023-03-16 10:26:01 -04:00
bgp_network.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_nexthop.c bgpd: add support for l3vpn per-nexthop label 2023-03-22 12:06:29 +01:00
bgp_nexthop.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_nht.c bgpd: add support for l3vpn per-nexthop label 2023-03-22 12:06:29 +01:00
bgp_nht.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_open.c Merge pull request #12780 from opensourcerouting/spdx-license-id 2023-02-17 09:43:05 -05:00
bgp_open.h Merge pull request #12780 from opensourcerouting/spdx-license-id 2023-02-17 09:43:05 -05:00
bgp_packet.c Merge pull request #12780 from opensourcerouting/spdx-license-id 2023-02-17 09:43:05 -05:00
bgp_packet.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_pbr.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_pbr.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_rd.c Merge pull request #12248 from pguibert6WIND/bgpasdot 2023-02-21 08:01:03 -05:00
bgp_rd.h Merge pull request #12248 from pguibert6WIND/bgpasdot 2023-02-21 08:01:03 -05:00
bgp_regex.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_regex.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_route.c bgpd: correctly initialize the IP nexthop of redistributed routes 2023-03-22 12:06:29 +01:00
bgp_route.h bgpd: add support for l3vpn per-nexthop label 2023-03-22 12:06:29 +01:00
bgp_routemap_nb_config.c yang, bgpd: Fix "aggregator-asn" to support asdot 2023-03-16 07:00:53 +01:00
bgp_routemap_nb.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_routemap_nb.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_routemap.c bgpd: Unlock dest if we return earlier for aggregate install 2023-03-15 13:34:55 +02:00
bgp_rpki.c bgpd: Another rpki fix 2023-02-23 10:02:59 -05:00
bgp_rpki.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_script.c Merge pull request #12248 from pguibert6WIND/bgpasdot 2023-02-21 08:01:03 -05:00
bgp_script.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_snmp_bgp4.c Merge pull request #12780 from opensourcerouting/spdx-license-id 2023-02-17 09:43:05 -05:00
bgp_snmp_bgp4.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_snmp_bgp4v2.c Merge pull request #12780 from opensourcerouting/spdx-license-id 2023-02-17 09:43:05 -05:00
bgp_snmp_bgp4v2.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_snmp.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_snmp.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_table.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_table.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_trace.c *: make sure config.h or zebra.h is first 2021-04-23 12:06:35 +02:00
bgp_trace.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_updgrp_adv.c bgpd: Rename bgp_afi_node_lookup() to bgp_safi_node_lookup() 2023-03-14 12:01:56 +02:00
bgp_updgrp_packet.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_updgrp.c bgpd: Add missing items to debug for update group hash key creation 2023-03-07 07:58:27 -05:00
bgp_updgrp.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_vnc_types.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_vpn.c *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_vpn.h *: auto-convert to SPDX License IDs 2023-02-09 14:09:11 +01:00
bgp_vty.c bgpd: add vty command to select label allocation per nexthop 2023-03-22 12:06:29 +01:00
bgp_vty.h Merge pull request #12805 from karlquan/kquan_self_orig 2023-02-21 08:38:07 -05:00
bgp_zebra.c bgpd: use nexthop interface when adding LSP in BGP MPLSVPN 2023-03-22 12:06:29 +01:00
bgp_zebra.h bgpd: use nexthop interface when adding LSP in BGP MPLSVPN 2023-03-22 12:06:29 +01:00
bgpd.c bgpd: add the bgp_label_per_nexthop_cache struct and apis 2023-03-22 12:06:29 +01:00
bgpd.h bgpd: add the bgp_label_per_nexthop_cache struct and apis 2023-03-22 12:06:29 +01:00
Makefile build: non-recursive bgpd & rfp 2018-09-08 21:25:59 +02:00
subdir.am Revert "bgpd: optimal router reflection cli and fsm changes" 2023-01-17 18:15:28 +02:00