Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

curl https://localhost/api/v1.0/mgmtdomainmgmtdomains -X POST -H "Content-Type: application/json" -d '{"ipv4_gw": "192.168.0.0/24", "device_a": 9"cn-dist-juniper1", "device_b": 12"cn-dist-juniper2", "vlan": 100}'


Then we can power on the access switch, wait for it to boot using DHCP. List new devices that has booted using CNaaS startup config:

curl https://localhost/api/v1.0/devicedevices?filter[state]=state,DISCOVERED


If the device serial/MAC matches with a device you want to provision, call the API to initialize the device with a specified hostname and device type:

...

curl https://localhost/api/v1.0/jobjobs?limit=2