Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embiggen the goodness of maghemite #385

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open

Commits on Oct 18, 2024

  1. Cleanup key in rib_in when all paths are removed

    Fixes: #369
    
    Signed-off-by: Trey Aspelund <[email protected]>
    taspelund committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    082ff27 View commit details
    Browse the repository at this point in the history
  2. Use proper path comparison during route path deletion

    Signed-off-by: Trey Aspelund <[email protected]>
    taspelund committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    a40b7b8 View commit details
    Browse the repository at this point in the history
  3. bgp: Don't apply ImportExportPolicy to withdrawn nlri

    Import/Export filters are meant to modify which advertised prefixes
    are allowed. For Import, this is simply an allow-list that accepts a
    subset of the advertised nlri in a received update. For Export, this
    is an allow-list that accepts a subset of the locally originated nlri.
    In neither case do you want to apply these filters to the list of
    withdrawn nlri, as this can result in stale routes if a legitimate
    withdrawal is not sent or received.
    
    Fixes: #330
    
    Signed-off-by: Trey Aspelund <[email protected]>
    taspelund committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    e71e1bc View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2024

  1. Various refactoring

    Removes an unused function.
    Guards an illumos-specific import.
    Consolidates (bfd) nexthop enabled functions into one that takes a bool.
    Moves RIB locking and looping of prefixes and PrefixChangeNotifications
    into RIB removal helper functions to improve pcn batching and
    consolidate locations for future RIB batch work.
    Removes re-processing of BGP path attributes.
    Removes re-looping over routes/paths in a few places.
    Eliminates some return types when no callers handled Result.
    Adds some TODOs.
    
    Signed-off-by: Trey Aspelund <[email protected]>
    taspelund committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    6523217 View commit details
    Browse the repository at this point in the history
  2. Add tests for RIB insertion/removal

    Signed-off-by: Trey Aspelund <[email protected]>
    taspelund committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    67b520a View commit details
    Browse the repository at this point in the history
  3. make clippy happy

    taspelund committed Oct 20, 2024
    Configuration menu
    Copy the full SHA
    d3dd364 View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2024

  1. Remove duplicate lock! macro

    mgd/src/bgp_admin.rs was re-defining lock! identically to the one in
    mg-common.  Remove this dupe definition and just import from mg-common.
    
    Signed-off-by: Trey Aspelund <[email protected]>
    taspelund committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    72e6b00 View commit details
    Browse the repository at this point in the history
  2. Move completely over to use of lock! macro

    Replace all old instances of .lock().unwrap() with lock!()
    
    Signed-off-by: Trey Aspelund <[email protected]>
    taspelund committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    9ac2822 View commit details
    Browse the repository at this point in the history
  3. Move log module from bgp into mg_common

    Signed-off-by: Trey Aspelund <[email protected]>
    taspelund committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    4255029 View commit details
    Browse the repository at this point in the history
  4. Move bgp test to mg_common::log

    Signed-off-by: Trey Aspelund <[email protected]>
    taspelund committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    85277cc View commit details
    Browse the repository at this point in the history
  5. Make clippy happy

    Actually run the same cargo clippy command as CI, so I can see
    errors locally :/
    
    Signed-off-by: Trey Aspelund <[email protected]>
    taspelund committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    0d8270f View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2024

  1. Configuration menu
    Copy the full SHA
    112a142 View commit details
    Browse the repository at this point in the history
  2. Make remove_prefix_path closure more intuitive

    Signed-off-by: Trey Aspelund <[email protected]>
    taspelund committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    ad22371 View commit details
    Browse the repository at this point in the history
  3. remove pcn todo

    taspelund committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    daf90ba View commit details
    Browse the repository at this point in the history