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

sync routes #303

Merged
merged 4 commits into from
Jul 8, 2024
Merged

sync routes #303

merged 4 commits into from
Jul 8, 2024

Conversation

michaeldjeffrey
Copy link
Contributor

Added Commands

hpr config route sync [--oui=<oui>]
Fetches All Routes for all Orgs (unless otherwise specified).
New Routes are run through hpr config route refresh.
Leftover Routes are deleted.

hpr config route remove <route_id>
Deletes a Route the same way a Delete event from the Config Service would.


If a Route is deleted and an SKF Add comes through the regular event stream, the Route may be recreated before you expect. In this case, syncing will not update the route with new information. But a route refresh will.

If a route does not exist locally, we will insert it, and fetch all of its
parts. DevaddrRanges, Skfs, Euis.
- add cli config test suite
- pretty print the added and removed ids or routes

The diffing for the routes is done in the cli module, this way the route
stream worker doesn't start to become like the xor filter worker where
it started to hold the kitchen sink.

Routes are only sent to the route stream worker after they have been
inserted and need their parts updated.
@macpie macpie merged commit fe56018 into main Jul 8, 2024
17 checks passed
@macpie macpie deleted the mj/sync-routes branch July 8, 2024 19:09
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