blob: 39d2c335f7a3f14dd532998b231df3ef0f2d6a61 [file] [log] [blame]
Andrea Campanella362b7d32018-12-11 18:57:12 +01001#!/bin/bash
2onos localhost cfg set org.onosproject.netconf.ctl.impl.NetconfControllerImpl netconfReplyTimeout 20
3onos localhost cfg set org.onosproject.netconf.ctl.impl.NetconfControllerImpl netconfConnectTimeout 20
4onos localhost cfg set org.onosproject.netconf.ctl.impl.NetconfControllerImpl netconfIdleTimeout 30000
Andrea Campanellaa85af8b2019-03-19 10:46:54 -07005onos-netcfg localhost openconfig-device-cassini-test1.json
Andrea Campanella362b7d32018-12-11 18:57:12 +01006sleep 10
Andrea Campanellaa85af8b2019-03-19 10:46:54 -07007onos-netcfg localhost openconfig-device-cassini-test2.json
Andrea Campanella362b7d32018-12-11 18:57:12 +01008sleep 10
Andrea Campanellaa85af8b2019-03-19 10:46:54 -07009onos-netcfg localhost openconfig-device-cassini-test-link.json
Andrea Campanella362b7d32018-12-11 18:57:12 +010010sleep 2
Andrea Campanellad8109462019-03-21 10:29:12 -070011curl -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
Andrea Campanella362b7d32018-12-11 18:57:12 +010012sleep 2
Andrea Campanellad8109462019-03-21 10:29:12 -070013curl -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