Skip to content

Add a hook that is called for entries after install.#62

Merged
robshakir merged 12 commits intomainfrom
dataplane-prod1
Jul 1, 2021
Merged

Add a hook that is called for entries after install.#62
robshakir merged 12 commits intomainfrom
dataplane-prod1

Conversation

@robshakir
Copy link
Copy Markdown
Member

  * (M) rib/rib.go
  * (M) rib/rib_test.go
    - add new ResolvedEntryFn that is called after AddEntry with
      full context of the set of RIBs.
    - rename existing each -> PostChangeHook.
  * (M) server/server.go
    - rename post change hook.

  * (D) a
    - Remove erroneous file.
  * (A) afthelper/afthelper.go
  * (A) afthelper/afthelper_test.go
   -  Add a helper function to take a RIB and determine the set of
      IP address next-hops from the AFT model. This allows us to
      take an input gRIBI entry and determine what next-hop IPs
      it uses, which then can be resolved to connected interfaces.
  * (M) rib/rib.go
  * (M) rib/rib_test.go
    - add new ResolvedEntryFn that is called after AddEntry with
      full context of the set of RIBs.
    - rename existing each -> PostChangeHook.
  * (M) server/server.go
    - rename post change hook.
  * (M) rib/rib_test.go
    - Add test of using afthelper to resolve the entries that are
      to be installed.
Base automatically changed from dataplane-prod0 to main June 30, 2021 00:05
@robshakir robshakir requested a review from sthesayi June 30, 2021 14:16
robshakir added 8 commits July 1, 2021 10:48
  * (M) afthelper/afthelper.go
    -  Add JSON marshalling for summary next-hops.
  * (M) sysrib/sysrib.go
  * (M) sysrib/sysrib_test.go
    - Add support for recursing onto non-connected next-hops
      to egress interface.
  * (M) compliance/compliance.go
    - Make the compliance test case actually resolve an IPv4
      prefix to an egress interface
  * (M) device/device.go
  * (M) device/device_test.go
    - Connect the gRIBI server to sysRIB so that entries that are
      installed are then installed into the sysRIB when they are
      resolved.
  * (M) fluent/fluent.go
    - Add support
  * (M) server/server.go
    - Rename hooks to be more intuitive.
  * (M) afthelper/afthelper_test.go
    - Add missing copyright notice to afthelper_test.go
  * (M) rib/rib_test.go
    - Remove panic() from test call.
  * (M) sysrib/sysrib.go
    - Ensure that we have a lock on the RIB now concurrent access
      is possible.
@robshakir robshakir merged commit f1f33b4 into main Jul 1, 2021
@robshakir robshakir deleted the dataplane-prod1 branch July 1, 2021 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants