Modify infrastructure components via AMQP/ VILLAScontroller
Infrastructure components should be created/ updated/ deleted via AMQP and VILLAScontroller messages. The model of infrastructure components requires a new field
controller-uuid to save the UUID of the VILLAScontroller that is responsible for the component. The POST, PUT and DELETE endpoints for infrastructure components should either
- allow for a direct change of the component in the DB if
controller-uuidis empty (= the way it works already)
- or initiate the creation/ update/ deletion of an IC via the VILLAScontroller /AMPQ and NOT perform a direct change of the component in the DB. A VILLAScontroller infrastructure component is expected to send periodic updates of all ICs that it knows so that based on these periodic updates changes to the set of ICs can be made in the DB through the VILLASweb backend (create, update, delete).
This issue requires changes in the VILLAScontroller component.