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

feat: implement PUT for inventory UPF #278

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

patriciareinoso
Copy link
Contributor

@patriciareinoso patriciareinoso commented Jan 8, 2025

Description

This PR depends on #279

This PR implements the edition of UPFs

  • Create an index over hostname for UPFs to guarantee unique hostnames in DB

  • Create an index over name for gNBs to guarantee unique gNB names in DB

  • Modify POST operation to remove the target from path: now hostname and port are specified in the body of the request.

  • We cannot create 2 UPFs with the same hostname.

  • Add PUT operation:

    • If the UPF hostname does not exist it is created.
    • If the UPF hostname exists, it is modified.
    • Edition of UPF is propagated to Network slices containing a UPF with the given name using a PATCH operation to modify only the UPF field.
  • The POST and PUT handlers do not use the config channel -> reduce complexity.

Signed-off-by: Patricia Reinoso <[email protected]>
Signed-off-by: Patricia Reinoso <[email protected]>
Signed-off-by: Patricia Reinoso <[email protected]>
Signed-off-by: Patricia Reinoso <[email protected]>
@patriciareinoso patriciareinoso marked this pull request as ready for review January 8, 2025 16:47
@patriciareinoso patriciareinoso marked this pull request as draft January 9, 2025 13:00
Signed-off-by: Patricia Reinoso <[email protected]>
Signed-off-by: Patricia Reinoso <[email protected]>
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.

1 participant