You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »


 


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 

--- a/tools/test/scenarios/net-setup-odtn.xml
+++ b/tools/test/scenarios/net-setup-odtn.xml
@@ -41,7 +41,7 @@
     <!-- include 2 or more docker emulators to setup the network for phase 1.0-->
     <group name="ODTN-Net-Setup.Init-network" requires="ODTN-Net-Setup.Verify-Logs-1">
       <step name="ODTN-Net-Setup.Start-emulators" exec="docker-compose -f /home/sdn/emulator/docker-compose.yaml up -d"/>
-      <step name="ODTN-Net-Setup.Generate-cfg-files" requires="ODTN-Net-Setup.Start-emulators" exec="${ONOS_SCENARIOS}/odtn/createNetCfg.sh"/>
+      <step name="ODTN-Net-Setup.Generate-cfg-files" requires="ODTN-Net-Setup.Start-emulators" exec="${ONOS_SCENARIOS}/odtn/createNetCfg.sh ${HOME}/odtn-demo/cassini-demo/config/openconfig-device-cassini-test.json ${HOME}/odtn-demo/cassini-demo/config/openconfig-device-cassini-test-link.json ${HOME}/odtn-demo/cassini-demo/config/net-summary.json"/>
       <step name="ODTN-Net-Setup.Put-nodes" requires="ODTN-Net-Setup.Generate-cfg-files" exec="onos-netcfg ${OC1} /tmp/odtn/openconfig-devices.json"/>
       <group name="ODTN-Net-Setup.Wait-nodes" requires="ODTN-Net-Setup.Put-nodes">
         <parallel var="${OC#}">
  • No labels