faucetsdn / udmi

Universal Device Management Interface (UDMI) provides a high-level specification for the management and operation of physical IoT systems.

Home Page:https://faucetsdn.github.io/udmi/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Registrar - Does not delete devices in the registry which are not in the site model

noursaidi opened this issue · comments

When running registrar, if there are devices registered in the IoT core registry, which are not defined in the site model, they are not deleted from the registry.

Default behaviour should be to remove them, so the registry matches the site model

Right now it blocks them rather than removing them.

It's stopped doing that .. but I've just checked and seems to because it's become a configurable parameter. I've done a PR #382 to change the default.

But true about deletion, you're right. Default behaviour would be to block, and then a flag to delete devices if required (devices need to be unbound from respective gateways before they can be deleted). Maybe even a backup.. We have a use-case where a registry has with 20k of which about 5k are proxy devices aren't in the site model and were accidently created so need to be removed.