1. Configuration
There are two physical Cassini devices in the office of ONF at Menlo Park, CA, whose IPs are 10.128.200.2 and 10.128.200.3 respectively.
1.1 Node configuration
{ "devices" : { "netconf:10.128.200.3:830" : { "basic" : { "name":"cassini2", "driver":"cassini-ocnos" }, "netconf" : { "ip" : "10.128.200.3", "port" : "830", "username" : "root", "password" : "cobbler", "idle-timeout" : "0" } }, "netconf:10.128.200.2:830" : { "basic" : { "name":"cassini1", "driver":"cassini-ocnos" }, "netconf" : { "ip" : "10.128.200.2", "port" : "830", "username" : "root", "password" : "cobbler", "idle-timeout" : "0" } } } }
1.2 Link configuration
There are only two line-side connections between these two optical devices.
{ "links": { "netconf:10.128.200.2:830/201-netconf:10.128.200.3:830/201": { "basic" : { "type": "OPTICAL", "metric": 1, "bidirectional": true } }, "netconf:10.128.200.2:830/209-netconf:10.128.200.3:830/210": { "basic" : { "type": "OPTICAL", "metric": 1, "bidirectional": true } } } }
2. ONOS setup and connectivity operations with STC
More details about related STC commands, please see ODTN with STC.
In the directory "${HOME}/odtn-demo/cassini-demo/config", there are three mandatory files listed below:
"net-summary.json" - The one-line file that contains the statistical json about the topology as follows:
{"device_num":"2","port_num":"48","link_num":"4"}
- "openconfig-device-cassini-test.json" - This file contains the node information as 1.1 Node configuration shows.
- "openconfig-device-cassini-test-link.json" - This file contains the link information as 1.2 Link configuration shows.
Before the STC commands are executed, we need to modify