Deactivate (remove) a NetOps Module

To deactivate and remove a NetOps Module from a given node, use the following API call to Lighthouse:

DELETE /api/v3/netops/modules/module_id/nodes/node_id

where module_id is one of dop (Secure Provisioning), IP Access, or ag (Automation Gateway), and node_id is the internal node ID, for example, nodes-1.

Follow the procedure below to remove NetOps Modules from a given node:

  1. Log in to the Lighthouse CLI shell as root or a Lighthouse Administrator user.

  2. Determine the node's node ID by running:

node-info --list

  1. Update the highlighted fields with your username, password, the node ID and modules to deactivate, then run the following:

LH_USERNAME="root"
LH_PASSWORD="default"
NODE_ID="nodes-1"
MODULES_TO_DEACTIVATE="dop ag sdi"

token=$(curl -k -L -d '{"username":"'$LH_USERNAME'","password":"'$LH_PASSWORD'"}' https://127.0.0.1/api/v1/sessions/ | cut -f10 -d'"')

for module_id in $MODULES_TO_DEACTIVATE; do
 curl -k -L -X DELETE -H "Authorization: Token $token" https://127.0.0.1/api/v3/netops/modules/${module_id}/nodes/$NODE_ID
done