#Admin State
Admin state is used to lock, unlock or southbound-lock devices. Modification of data on those devices is allowed or forbidden accordingly.
Three different states are currently supported:
- LOCKED - When a device is administratively locked, it is not possible to modify its configuration and no changes are ever pushed to the device.
- UNLOCKED - The device is assumed to be operational. For all changes, an attempt is made to send them southbound. This is the default state for newly created devices.
- SOUTHBOUND_LOCKED - It is possible to configure the device, but no changes are sent to the device. Useful when pre-provisioning devices.
The admin state is automatically added to the device during installation. You can specify an admin state for a device as follows:
"uniconfig-config:admin-state": "unlocked"
An RPC is available for changing admin state after installation.
#RPC example
RPC input contains the device name and intended admin state.
RPC Request
RPC Response, Status: 204
#RPC example
GET
request to get the actual state of the device.
RPC Request
RPC Response, Status: 200
#RPC failed example
The device is in the locked
admin state, and the user attempts to modify data on the device.
RPC Request
RPC Response, Status: 400