Skip to content
Snippets Groups Projects
  1. Apr 19, 2021
  2. Mar 30, 2021
  3. Feb 10, 2021
  4. Dec 29, 2020
  5. Dec 07, 2020
    • Ondřej Zajíček's avatar
      Nest: Per-channel debug flags · 61dae32b
      Ondřej Zajíček authored
      The patch add support for per-channel debug flags, currently just
      'states', 'routes', and 'filters'. Flag 'states' is used for channel
      state changes, remaining two for routes passed through the channel.
      The per-protocol debug flags 'routes'/'filters' still enable reporting
      of routes for all channels, to keep existing behavior.
      
      The patch causes minor changes in some log messages.
      61dae32b
  6. Nov 15, 2020
  7. Jul 16, 2020
  8. May 01, 2020
  9. Mar 26, 2020
  10. Jan 07, 2020
    • Ondřej Zajíček's avatar
      KRT: Improve syncer code to avoid using temporary data in rtable · 7d767c5a
      Ondřej Zajíček authored
      The old code stored route verdicts and temporary routes directly in
      rtable. The new code do not store received routes (it immediately
      compares them with exported routes and resolves conflicts) and uses
      internal bitmap to keep track of which routes were received and which
      needs to be reinstalled.
      
      By not putting 'invalid' temporary routes to rtable, we keep rtable
      in consistent state, therefore scan no longer needs to be atomic
      operation and could be splitted to multiple events.
      7d767c5a
  11. Nov 26, 2019
    • Ondřej Zajíček's avatar
      Nest: Use bitmaps to keep track of exported routes · 5ea39eaa
      Ondřej Zajíček authored
      Use a hierarchical bitmap in a routing table to assign ids to routes, and
      then use bitmaps (indexed by route id) in channels to keep track whether
      routes were exported. This avoids unreliable and inefficient re-evaluation
      of filters for old routes in order to determine whether they were exported.
      5ea39eaa
  12. Nov 03, 2019
  13. Oct 10, 2019
  14. Oct 09, 2019
  15. Sep 24, 2019
  16. Aug 27, 2019
  17. Aug 14, 2019
    • Ondřej Zajíček's avatar
      BGP: implement Adj-RIB-Out · b7d7599c
      Ondřej Zajíček authored
      The patch implements optional internal export table to a channel and
      hooks it to BGP so it can be used as Adj-RIB-Out. When enabled, all
      exported (post-filtered) routes are stored there. An export table can be
      examined using e.g. 'show route export table bgp1.ipv4'.
      b7d7599c
  18. Jul 08, 2019
  19. Mar 22, 2019
  20. Mar 14, 2019
    • Ondřej Zajíček's avatar
      Nest: Update handling of temporary attributes · 875cc073
      Ondřej Zajíček authored
      The temporary atttributes are no longer removed by ea_do_prune(), but
      they are undefined by store_tmp_attrs() protocol hooks. This fixes
      several bugs where temporary attributes were removed when they should
      not or not removed when they should be. The flag EAF_TEMP is no longer
      needed and was removed.
      
      Update all protocol make_tmp_attrs() / store_tmp_attrs() hooks to use
      helper functions and to handle unset attributes properly.
      
      Also fix some related bugs like improper handling of empty eattr list.
      875cc073
  21. Mar 06, 2019
    • Ondřej Zajíček's avatar
      OSPF: Improved handling of tmpattrs · 9aa77fcc
      Ondřej Zajíček authored
      Keep track of whether OSPF tmpattrs are actually defined for given route
      (using flags in rte->pflags). That makes them behave more like real
      eattrs so a protocol can define just a subset of them or they can be
      undefined by filters.
      
      Do not set ospf_metric2 for other than type 2 external OSPF routes and do
      not set ospf_tag for non-external OSPF routes. That also fixes a bug
      where internal/inter-area route propagated from one OSPF instance to
      another is initiated with infinity ospf_metric2.
      
      Thanks to Yaroslav Dronskii for the bugreport.
      9aa77fcc
  22. Feb 22, 2019
    • Ondřej Zajíček's avatar
      Nest: Do not compare rte.flags during rte_update() · 93af78d2
      Ondřej Zajíček authored
      Route flags are mosty internal state of rtable, they are not significant
      to whether a route has changed. With the old code, all routes received as
      a part of enhanced route refresh are always re-announced to other peers
      due to change in REF_STALE.
      93af78d2
  23. Feb 20, 2019
  24. Feb 19, 2019
  25. Feb 05, 2019
    • Ondřej Zajíček's avatar
      Nest: Improve export counter handling · 6e8fb668
      Ondřej Zajíček authored
      One of previous workarounds for phantom route avoidance breaks export
      counters by expanding sending of spurious withdraws, which are send when
      we are not sure whether we have advertised that routes in the past.
      If not, then export counter is decreased, but it was not increased
      before, so it overflows under zero.
      
      The patch fixes that by sendung spurious withdraws, but not counting them
      on export counter. That may lead to error in the other direction, but that
      happens only as a race condition (i.e., in normal operation filters
      return proper values about old route export state).
      6e8fb668
  26. Feb 02, 2019
  27. Jan 31, 2019
  28. Jan 30, 2019
    • Ondřej Zajíček's avatar
      Nest: Prevent withdraws from propagation back to source protocol · e84c81b7
      Ondřej Zajíček authored
      The earlier fix loosen conditions for not running filters on old
      route when deciding about route propagation to a protocol to avoid
      issues with ghost routes in some race conditions.
      
      Unfortunately, the fix also caused back-propagation of withdraws. For
      regular updates, back-propagation is prevented in import_control hooks,
      but these are not called on withdraws. For them, import_control hooks
      are called on old routes instead, changing (old, NULL) notification
      to (NULL, NULL), which is ignored. By not calling export processing
      in some cases, the withdraw is not ignored and is back-propagated.
      
      This patch fixes that by contract conditions so the earlier fix is not
      applied to back-propagated updates.
      e84c81b7
  29. Jan 17, 2019
  30. Dec 12, 2018
  31. Dec 04, 2018
    • Jan Maria Matejka's avatar
      Terminology cleanup: The import_control hook is now called preexport. · 14375237
      Jan Maria Matejka authored
      Once upon a time, far far away, there were the old Bird developers
      discussing what direction of route flow shall be called import and
      export. They decided to say "import to protocol" and "export to table"
      when speaking about a protocol. When speaking about a table, they
      spoke about "importing to table" and "exporting to protocol".
      
      The latter terminology was adopted in configuration, then also the
      bird CLI in commit ea2ae6dd started to use it (in year 2009). Now
      it's 2018 and the terminology is the latter. Import is from protocol to
      table, export is from table to protocol. Anyway, there was still an
      import_control hook which executed right before route export.
      
      One thing is funny. There are two commits in April 1999 with just two
      minutes between them. The older announces the final settlement
      on config terminology, the newer uses the other definition. Let's see
      their commit messages as the git-log tool shows them (the newer first):
      
          commit 9e0e485e
          Author: Martin Mares <mj@ucw.cz>
          Date:   Mon Apr 5 20:17:59 1999 +0000
      
      	Added some new protocol hooks (look at the comments for better explanation):
      
      		make_tmp_attrs          Convert inline attributes to ea_list
      		store_tmp_attrs         Convert ea_list to inline attributes
      		import_control          Pre-import decisions
      
          commit 5056c559
          Author: Martin Mares <mj@ucw.cz>
          Date:   Mon Apr 5 20:15:31 1999 +0000
      
      	Changed syntax of attaching filters to protocols to hopefully the final
      	version:
      
      		EXPORT <filter-spec>    for outbound routes (i.e., those announced
      					by BIRD to the rest of the world).
      		IMPORT <filter-spec>    for inbound routes (i.e., those imported
      					by BIRD from the rest of the world).
      
      	where <filter-spec> is one of:
      
      		ALL                     pass all routes
      		NONE                    drop all routes
      		FILTER <name>           use named filter
      		FILTER { <filter> }     use explicitly defined filter
      
      	For all protocols, the default is IMPORT ALL, EXPORT NONE. This includes
      	the kernel protocol, so that you need to add EXPORT ALL to get the previous
      	configuration of kernel syncer (as usually, see doc/bird.conf.example for
      	a bird.conf example :)).
      
      Let's say RIP to this almost 19-years-old inconsistency. For now, if you
      import a route, it is always from protocol to table. If you export a
      route, it is always from table to protocol.
      
      And they lived happily ever after.
      14375237
  32. Nov 20, 2018
    • Ondřej Zajíček's avatar
      The MRT protocol · 863ecfc7
      Ondřej Zajíček authored
      The new MRT protocol is responsible for periodic RIB table dumps in the
      MRT format (RFC 6396). Also the existing code for BGP4MP MRT dumps is
      refactored and splitted between BGP to MRT protocols, will be more
      integrated into MRT in the future.
      
      Example:
      
      protocol mrt {
              table "*";
              filename "%N_%F_%T.mrt";
              period 60;
      }
      
      It is partially based on the old MRT code from Pavel Tvrdik.
      863ecfc7
  33. Oct 01, 2018
  34. Jul 31, 2018
Loading