OpenCHAMI / bss

MIT License
1 stars 2 forks source link

Implement Postgres Update() Function #3

Closed synackd closed 8 months ago

synackd commented 10 months ago

Summary and Scope

The Postgres internal module of BSS contains functions for Add()ing and Delete()ing boot configs. This PR implements Update()ing existing nodes' boot configs.

This PR also adds the ability to query boot parameters specifically by MAC/XName/NID, e.g:

curl https://bss:27778/boot/v1/bootparameters?mac=02:0b:b8:00:30:02

Finally, this PR adds unit tests for testing the Update() function.

Issues and Related PRs

N/A

Testing

Tested on:

Risks and Mitigations

The Update() function is a bit large as the algorithm for updating is a bit involved, but perhaps some of it could be separated into smaller functions.