blob: b77ef5d7f661eeda567404f55dbd58f65de4d7fe [file] [log] [blame]
#!/bin/bash
onos localhost cfg set org.onosproject.netconf.ctl.impl.NetconfControllerImpl netconfReplyTimeout 20
onos localhost cfg set org.onosproject.netconf.ctl.impl.NetconfControllerImpl netconfConnectTimeout 20
onos localhost cfg set org.onosproject.netconf.ctl.impl.NetconfControllerImpl netconfIdleTimeout 30000
onos-netcfg localhost ~/openconfig-device-cassini-test1.json
sleep 10
onos-netcfg localhost ~/openconfig-device-cassini-test2.json
sleep 10
onos-netcfg localhost ~/openconfig-device-cassini-test-link.json
sleep 2
curl -X POST --user onos:rocks --header 'Content-Type: application/json' --header 'Accept: application/json' -d@h1.json http://10.172.0.2:8181/onos/v1/hosts
sleep 2
curl -X POST --user onos:rocks --header 'Content-Type: application/json' --header 'Accept: application/json' -d@h2.json http://10.172.0.2:8181/onos/v1/hosts