Reboot

Initiates Device Reboot

Import OPBNOS API

from opbclient import opb_api as opbapi

Initialize client

Use the appropriate JSON file that corresponds to the targetted device name. This JSON file should contain request body parameters corresponding to any potential configuration/post requests.

node = opbapi.connect_to('SN2010')

Device Reboot

The API, configReboot(), reboots the system.

node.configReboot(dt={"reboot":"yes"})

Output

Note: Client will receive the below status codes for both deleting funtions to indicate a successful request.

Status : 200 -> Response : b'200'

The status code '500' indicates a server error.