]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: withdraw default route when route-map has no match
authorAlexander Chernavin <achernavin@netgate.com>
Tue, 25 Aug 2020 11:10:47 +0000 (07:10 -0400)
committerDonatas Abraitis <donatas.abraitis@gmail.com>
Tue, 22 Jun 2021 20:29:00 +0000 (23:29 +0300)
commit9e4948b47eac24eff366daacbdcbb067c0308120
treeea6185a840e51aca9f8497873e926777fa708a28
parent97935a2e7c75b5174ea7c02c9167493749a56138
bgpd: withdraw default route when route-map has no match

If you advertise a default route (via default-originate) only if some
prefix is present in the BGP RIB (route-map specified) and this prefix
becomes unavailable, the default route keeps being advertised.

With this change, when we iterate over the BGP RIB to check if we can
advertise the default route, skip unavailable prefixes.

Signed-off-by: Alexander Chernavin <achernavin@netgate.com>
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
bgpd/bgp_updgrp_adv.c