blob: 39d2c335f7a3f14dd532998b231df3ef0f2d6a61 [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.128.200.1: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.128.200.1:8181/onos/v1/hosts