Deactivate (remove) a NetOps Module

Deactivate and Remove a NetOps Module via the API

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).

  • node_id is the internal node ID, for example, nodes-1

Deactivate and Remove NetOps Modules via CLI

  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

  3. 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