Andrea Campanella | 362b7d3 | 2018-12-11 18:57:12 +0100 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | onos localhost cfg set org.onosproject.netconf.ctl.impl.NetconfControllerImpl netconfReplyTimeout 20 |
| 3 | onos localhost cfg set org.onosproject.netconf.ctl.impl.NetconfControllerImpl netconfConnectTimeout 20 |
| 4 | onos localhost cfg set org.onosproject.netconf.ctl.impl.NetconfControllerImpl netconfIdleTimeout 30000 |
Andrea Campanella | a85af8b | 2019-03-19 10:46:54 -0700 | [diff] [blame] | 5 | onos-netcfg localhost openconfig-device-cassini-test1.json |
Andrea Campanella | 362b7d3 | 2018-12-11 18:57:12 +0100 | [diff] [blame] | 6 | sleep 10 |
Andrea Campanella | a85af8b | 2019-03-19 10:46:54 -0700 | [diff] [blame] | 7 | onos-netcfg localhost openconfig-device-cassini-test2.json |
Andrea Campanella | 362b7d3 | 2018-12-11 18:57:12 +0100 | [diff] [blame] | 8 | sleep 10 |
Andrea Campanella | a85af8b | 2019-03-19 10:46:54 -0700 | [diff] [blame] | 9 | onos-netcfg localhost openconfig-device-cassini-test-link.json |
Andrea Campanella | 362b7d3 | 2018-12-11 18:57:12 +0100 | [diff] [blame] | 10 | sleep 2 |
Andrea Campanella | d810946 | 2019-03-21 10:29:12 -0700 | [diff] [blame] | 11 | 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 |
Andrea Campanella | 362b7d3 | 2018-12-11 18:57:12 +0100 | [diff] [blame] | 12 | sleep 2 |
Andrea Campanella | d810946 | 2019-03-21 10:29:12 -0700 | [diff] [blame] | 13 | 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 |