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

Naming is hard #107

Merged
merged 5 commits into from
Dec 21, 2023
Merged

Naming is hard #107

merged 5 commits into from
Dec 21, 2023

Conversation

cjeker
Copy link
Contributor

@cjeker cjeker commented Dec 21, 2023

Cleanup some code that is just confusing because the variables and functions are inappropriately named.
While I can handle ROA vs VRP and ASPA vs VAP, it breaks my mind when VRP refers to all objects in the cache.

Mainly use RPKI for the top level structure that includes VRP, VAP and BgpsecKeys.
Use VAP instead of aspa (at least in those places where VRP is used instead of ROA).
Use items for SendableData objects since those can be VRP, VAP or BgpsecKeys.
Kill a unused function and variable in the server code.

depending if it is the array of SD or a single item.
The toplevel JSON object is now RPKIList and it contains VRPJson, VAPJson
and BgpSecKeyJson objects.
of VRPs but the number of objects in the cache.
@job job merged commit 2dfc26e into bgp:master Dec 21, 2023
3 checks passed
@cjeker cjeker deleted the naming_is_hard branch December 21, 2023 15:36
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