Date: Thu, 28 Mar 2024 21:23:26 +0000 (UTC) Message-ID: <29428821.881.1711661006614@ip-10-30-146-46.us-west-2.compute.internal> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_880_1115371648.1711661006610" ------=_Part_880_1115371648.1711661006610 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
There are two physical Cassini devices in the office of ONF at Menlo Par= k, CA, whose IPs are 10.128.200.2 and 10.128.200.3 respectively.
{ "devices" : { "netconf:10.128.200.3:830" : { "basic" : { "name":"cassini2", =09 "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", =09 "driver":"cassini-ocnos" }, "netconf" : { "ip" : "10.128.200.2", "port" : "830", "username" : "root", "password" : "cobbler", "idle-timeout" : "0" } } } }
There are only two line-side connections between these two optical devic= es.
{ "links": { "netconf:10.128.200.2:830/201-netconf:10.128.200.3:830/201": { "basic" : { "type": "OPTICAL", "metric": 1, =09=09 "bidirectional": true } }, =09 "netconf:10.128.200.2:830/209-netconf:10.128.200.3:830/210": { "basic" : { "type": "OPTICAL", "metric": 1, =09=09 "bidirectional": true } } } }
More details about related STC commands, please see ODTN with STC.
In the directory "${HOME}/odtn-demo/cassini-demo/config", there are thre= e mandatory files listed below:
"net-summary.json" - The one-line file that co= ntains the statistical json about the topology as follows:
{"device_n= um":"2","port_num":"48","link_num":"4"}
Before the STC commands are executed, we need to modify file net-setup-o= dtn.xml to add some related topology configurations, which is shown as foll= ows:
--- a/to= ols/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 ph= ase 1.0--> <group name=3D"ODTN-Net-Setup.Init-network" requires=3D"ODTN-Net-Se= tup.Verify-Logs-1"> <step name=3D"ODTN-Net-Setup.Start-emulators" exec=3D"docker-comp= ose -f /home/sdn/emulator/docker-compose.yaml up -d"/> - <step name=3D"ODTN-Net-Setup.Generate-cfg-files" requires=3D"ODTN= -Net-Setup.Start-emulators" exec=3D"${ONOS_SCENARIOS}/odtn/createNetCfg.sh"= /> + <step name=3D"ODTN-Net-Setup.Generate-cfg-files" requires=3D"ODTN= -Net-Setup.Start-emulators" exec=3D"${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.js= on ${HOME}/odtn-demo/cassini-demo/config/net-summary.json"/> <step name=3D"ODTN-Net-Setup.Put-nodes" requires=3D"ODTN-Net-Setu= p.Generate-cfg-files" exec=3D"onos-netcfg ${OC1} /tmp/odtn/openconfig-devic= es.json"/> <group name=3D"ODTN-Net-Setup.Wait-nodes" requires=3D"ODTN-Net-Se= tup.Put-nodes"> <parallel var=3D"${OC#}">
Optional
Optionally, you can also remove Step "ODTN-Net-Setup.Start-emulators" in= file net-setup-odtn.xml. This step starts the Cassini emulators, and = is no longer necessary in the scenario with physical equipment.
The command listed below set up a ONOS cluster with 3 instances, and com= plete topology discovery.
stc&nbs= p;net-odtn-presmoke && stc -ENV_DEFAULT=3D/tmp/odtn/OCvar.sh n= et-setup-odtn
Then we can see the topology configuration as follows:
sdn@root= > nodes = 21:43:13 id=3D172.17.0.5, address=3D172.17.0.5:9876, state=3DREADY, version=3D2.1.0.= aee634ef54, updated=3D41m25s ago * id=3D172.17.0.6, address=3D172.17.0.6:9876, state=3DREADY, version=3D2.1.0.= aee634ef54, updated=3D41m24s ago id=3D172.17.0.7, address=3D172.17.0.7:9876, state=3DREADY, version=3D2.1.0.= aee634ef54, updated=3D41m26s ago sdn@root > devices = 21:06:06 id=3Dnetconf:10.128.200.2:830, available=3Dtrue, local-status=3Dconnected 1= m31s ago, role=3DMASTER, type=3DTERMINAL_DEVICE, mfr=3DEDGECORE, hw=3DCassi= ni, sw=3DOcNOS, serial=3D, chassis=3D1, driver=3Dcassini-ocnos, ipaddress= =3D10.128.200.2, locType=3Dnone, name=3Dcassini1, port=3D830, protocol=3DNE= TCONF id=3Dnetconf:10.128.200.3:830, available=3Dtrue, local-status=3Dconnected 1= m31s ago, role=3DMASTER, type=3DTERMINAL_DEVICE, mfr=3DEDGECORE, hw=3DCassi= ni, sw=3DOcNOS, serial=3D, chassis=3D1, driver=3Dcassini-ocnos, ipaddress= =3D10.128.200.3, locType=3Dnone, name=3Dcassini2, port=3D830, protocol=3DNE= TCONF sdn@root > links = 21:06:09 src=3Dnetconf:10.128.200.2:830/201, dst=3Dnetconf:10.128.200.3:830/201, typ= e=3DOPTICAL, state=3DACTIVE, metric=3D1.0, expected=3Dfalse src=3Dnetconf:10.128.200.2:830/209, dst=3Dnetconf:10.128.200.3:830/210, typ= e=3DOPTICAL, state=3DACTIVE, metric=3D1.0, expected=3Dfalse src=3Dnetconf:10.128.200.3:830/201, dst=3Dnetconf:10.128.200.2:830/201, typ= e=3DOPTICAL, state=3DACTIVE, metric=3D1.0, expected=3Dfalse src=3Dnetconf:10.128.200.3:830/210, dst=3Dnetconf:10.128.200.2:830/209, typ= e=3DOPTICAL, state=3DACTIVE, metric=3D1.0, expected=3Dfalse sdn@root > ports = 21:06:10 id=3Dnetconf:10.128.200.2:830, available=3Dtrue, local-status=3Dconnected 1= m41s ago, role=3DMASTER, type=3DTERMINAL_DEVICE, mfr=3DEDGECORE, hw=3DCassi= ni, sw=3DOcNOS, serial=3D, chassis=3D1, driver=3Dcassini-ocnos, ipaddress= =3D10.128.200.2, locType=3Dnone, name=3Dcassini1, port=3D830, protocol=3DNE= TCONF port=3D101, state=3Denabled, type=3Dpacket, speed=3D100000 , oc-logical-c= hannel=3D10101, oc-name=3Dxe1/1, odtn-connection-id=3Dconnection:1, odtn-po= rt-type=3Dclient, onos-index=3D101 port=3D102, state=3Denabled, type=3Dpacket, speed=3D100000 , oc-logical-c= hannel=3D10201, oc-name=3Dxe2/1, odtn-connection-id=3Dconnection:2, odtn-po= rt-type=3Dclient, onos-index=3D102 port=3D103, state=3Denabled, type=3Dpacket, speed=3D100000 , oc-logical-c= hannel=3D10301, oc-name=3Dxe3/1, odtn-connection-id=3Dconnection:3, odtn-po= rt-type=3Dclient, onos-index=3D103 port=3D104, state=3Denabled, type=3Dpacket, speed=3D100000 , oc-logical-c= hannel=3D10401, oc-name=3Dxe4/1, odtn-connection-id=3Dconnection:4, odtn-po= rt-type=3Dclient, onos-index=3D104 port=3D105, state=3Denabled, type=3Dpacket, speed=3D100000 , oc-logical-c= hannel=3D10501, oc-name=3Dxe5/1, odtn-connection-id=3Dconnection:5, odtn-po= rt-type=3Dclient, onos-index=3D105 port=3D106, state=3Denabled, type=3Dpacket, speed=3D100000 , oc-logical-c= hannel=3D10601, oc-name=3Dxe6/1, odtn-connection-id=3Dconnection:6, odtn-po= rt-type=3Dclient, onos-index=3D106 port=3D107, state=3Denabled, type=3Dpacket, speed=3D100000 , oc-logical-c= hannel=3D10701, oc-name=3Dxe7/1, odtn-connection-id=3Dconnection:7, odtn-po= rt-type=3Dclient, onos-index=3D107 port=3D108, state=3Denabled, type=3Dpacket, speed=3D100000 , oc-logical-c= hannel=3D10801, oc-name=3Dxe8/1, odtn-connection-id=3Dconnection:8, odtn-po= rt-type=3Dclient, onos-index=3D108 port=3D109, state=3Denabled, type=3Dpacket, speed=3D100000 , oc-logical-c= hannel=3D10901, oc-name=3Dxe9/1, odtn-connection-id=3Dconnection:9, odtn-po= rt-type=3Dclient, onos-index=3D109 port=3D110, state=3Denabled, type=3Dpacket, speed=3D100000 , oc-logical-c= hannel=3D11001, oc-name=3Dxe10/1, odtn-connection-id=3Dconnection:10, odtn-= port-type=3Dclient, onos-index=3D110 port=3D111, state=3Denabled, type=3Dpacket, speed=3D100000 , oc-logical-c= hannel=3D11101, oc-name=3Dxe11/1, odtn-connection-id=3Dconnection:11, odtn-= port-type=3Dclient, onos-index=3D111 port=3D112, state=3Denabled, type=3Dpacket, speed=3D100000 , oc-logical-c= hannel=3D11201, oc-name=3Dxe12/1, odtn-connection-id=3Dconnection:12, odtn-= port-type=3Dclient, onos-index=3D112 port=3D201, state=3Denabled, type=3Doch, speed=3D100000 , lambda=3D{"chan= nelSpacing":"CHL_50GHZ","gridType":"DWDM","slotGranularity":4,"spacingMulti= plier":1}, oc-logical-channel=3D20101, oc-name=3Doe1/1, odtn-connection-id= =3Dconnection:1, odtn-port-type=3Dline, onos-index=3D201, signalType=3DODU4= , tunable=3Dtrue port=3D202, state=3Denabled, type=3Doch, speed=3D100000 , lambda=3D{"chan= nelSpacing":"CHL_50GHZ","gridType":"DWDM","slotGranularity":4,"spacingMulti= plier":1}, oc-logical-channel=3D20102, oc-name=3Doe1/2, odtn-connection-id= =3Dconnection:2, odtn-port-type=3Dline, onos-index=3D202, signalType=3DODU4= , tunable=3Dtrue port=3D203, state=3Denabled, type=3Doch, speed=3D100000 , lambda=3D{"chan= nelSpacing":"CHL_50GHZ","gridType":"DWDM","slotGranularity":4,"spacingMulti= plier":1}, oc-logical-channel=3D20201, oc-name=3Doe2/1, odtn-connection-id= =3Dconnection:3, odtn-port-type=3Dline, onos-index=3D203, signalType=3DODU4= , tunable=3Dtrue port=3D204, state=3Denabled, type=3Doch, speed=3D100000 , lambda=3D{"chan= nelSpacing":"CHL_50GHZ","gridType":"DWDM","slotGranularity":4,"spacingMulti= plier":1}, oc-logical-channel=3D20202, oc-name=3Doe2/2, odtn-connection-id= =3Dconnection:4, odtn-port-type=3Dline, onos-index=3D204, signalType=3DODU4= , tunable=3Dtrue port=3D205, state=3Denabled, type=3Doch, speed=3D100000 , lambda=3D{"chan= nelSpacing":"CHL_50GHZ","gridType":"DWDM","slotGranularity":4,"spacingMulti= plier":1}, oc-logical-channel=3D20301, oc-name=3Doe3/1, odtn-connection-id= =3Dconnection:5, odtn-port-type=3Dline, onos-index=3D205, signalType=3DODU4= , tunable=3Dtrue port=3D206, state=3Denabled, type=3Doch, speed=3D100000 , lambda=3D{"chan= nelSpacing":"CHL_50GHZ","gridType":"DWDM","slotGranularity":4,"spacingMulti= plier":1}, oc-logical-channel=3D20302, oc-name=3Doe3/2, odtn-connection-id= =3Dconnection:6, odtn-port-type=3Dline, onos-index=3D206, signalType=3DODU4= , tunable=3Dtrue port=3D207, state=3Denabled, type=3Doch, speed=3D100000 , lambda=3D{"chan= nelSpacing":"CHL_50GHZ","gridType":"DWDM","slotGranularity":4,"spacingMulti= plier":1}, oc-logical-channel=3D20401, oc-name=3Doe4/1, odtn-connection-id= =3Dconnection:7, odtn-port-type=3Dline, onos-index=3D207, signalType=3DODU4= , tunable=3Dtrue port=3D208, state=3Denabled, type=3Doch, speed=3D100000 , lambda=3D{"chan= nelSpacing":"CHL_50GHZ","gridType":"DWDM","slotGranularity":4,"spacingMulti= plier":1}, oc-logical-channel=3D20402, oc-name=3Doe4/2, odtn-connection-id= =3Dconnection:8, odtn-port-type=3Dline, onos-index=3D208, signalType=3DODU4= , tunable=3Dtrue port=3D209, state=3Denabled, type=3Doch, speed=3D100000 , lambda=3D{"chan= nelSpacing":"CHL_50GHZ","gridType":"DWDM","slotGranularity":4,"spacingMulti= plier":1}, oc-logical-channel=3D20501, oc-name=3Doe5/1, odtn-connection-id= =3Dconnection:9, odtn-port-type=3Dline, onos-index=3D209, signalType=3DODU4= , tunable=3Dtrue port=3D210, state=3Denabled, type=3Doch, speed=3D100000 , lambda=3D{"chan= nelSpacing":"CHL_50GHZ","gridType":"DWDM","slotGranularity":4,"spacingMulti= plier":1}, oc-logical-channel=3D20502, oc-name=3Doe5/2, odtn-connection-id= =3Dconnection:10, odtn-port-type=3Dline, onos-index=3D210, signalType=3DODU= 4, tunable=3Dtrue port=3D211, state=3Denabled, type=3Doch, speed=3D100000 , lambda=3D{"chan= nelSpacing":"CHL_50GHZ","gridType":"DWDM","slotGranularity":4,"spacingMulti= plier":1}, oc-logical-channel=3D20601, oc-name=3Doe6/1, odtn-connection-id= =3Dconnection:11, odtn-port-type=3Dline, onos-index=3D211, signalType=3DODU= 4, tunable=3Dtrue port=3D212, state=3Denabled, type=3Doch, speed=3D100000 , lambda=3D{"chan= nelSpacing":"CHL_50GHZ","gridType":"DWDM","slotGranularity":4,"spacingMulti= plier":1}, oc-logical-channel=3D20602, oc-name=3Doe6/2, odtn-connection-id= =3Dconnection:12, odtn-port-type=3Dline, onos-index=3D212, signalType=3DODU= 4, tunable=3Dtrue id=3Dnetconf:10.128.200.3:830, available=3Dtrue, local-status=3Dconnected 1= m41s ago, role=3DMASTER, type=3DTERMINAL_DEVICE, mfr=3DEDGECORE, hw=3DCassi= ni, sw=3DOcNOS, serial=3D, chassis=3D1, driver=3Dcassini-ocnos, ipaddress= =3D10.128.200.3, locType=3Dnone, name=3Dcassini2, port=3D830, protocol=3DNE= TCONF port=3D101, state=3Denabled, type=3Dpacket, speed=3D100000 , oc-logical-c= hannel=3D10101, oc-name=3Dxe1/1, odtn-connection-id=3Dconnection:1, odtn-po= rt-type=3Dclient, onos-index=3D101 port=3D102, state=3Denabled, type=3Dpacket, speed=3D100000 , oc-logical-c= hannel=3D10201, oc-name=3Dxe2/1, odtn-connection-id=3Dconnection:2, odtn-po= rt-type=3Dclient, onos-index=3D102 port=3D103, state=3Denabled, type=3Dpacket, speed=3D100000 , oc-logical-c= hannel=3D10301, oc-name=3Dxe3/1, odtn-connection-id=3Dconnection:3, odtn-po= rt-type=3Dclient, onos-index=3D103 port=3D104, state=3Denabled, type=3Dpacket, speed=3D100000 , oc-logical-c= hannel=3D10401, oc-name=3Dxe4/1, odtn-connection-id=3Dconnection:4, odtn-po= rt-type=3Dclient, onos-index=3D104 port=3D105, state=3Denabled, type=3Dpacket, speed=3D100000 , oc-logical-c= hannel=3D10501, oc-name=3Dxe5/1, odtn-connection-id=3Dconnection:5, odtn-po= rt-type=3Dclient, onos-index=3D105 port=3D106, state=3Denabled, type=3Dpacket, speed=3D100000 , oc-logical-c= hannel=3D10601, oc-name=3Dxe6/1, odtn-connection-id=3Dconnection:6, odtn-po= rt-type=3Dclient, onos-index=3D106 port=3D107, state=3Denabled, type=3Dpacket, speed=3D100000 , oc-logical-c= hannel=3D10701, oc-name=3Dxe7/1, odtn-connection-id=3Dconnection:7, odtn-po= rt-type=3Dclient, onos-index=3D107 port=3D108, state=3Denabled, type=3Dpacket, speed=3D100000 , oc-logical-c= hannel=3D10801, oc-name=3Dxe8/1, odtn-connection-id=3Dconnection:8, odtn-po= rt-type=3Dclient, onos-index=3D108 port=3D109, state=3Denabled, type=3Dpacket, speed=3D100000 , oc-logical-c= hannel=3D10901, oc-name=3Dxe9/1, odtn-connection-id=3Dconnection:9, odtn-po= rt-type=3Dclient, onos-index=3D109 port=3D110, state=3Denabled, type=3Dpacket, speed=3D100000 , oc-logical-c= hannel=3D11001, oc-name=3Dxe10/1, odtn-connection-id=3Dconnection:10, odtn-= port-type=3Dclient, onos-index=3D110 port=3D111, state=3Denabled, type=3Dpacket, speed=3D100000 , oc-logical-c= hannel=3D11101, oc-name=3Dxe11/1, odtn-connection-id=3Dconnection:11, odtn-= port-type=3Dclient, onos-index=3D111 port=3D112, state=3Denabled, type=3Dpacket, speed=3D100000 , oc-logical-c= hannel=3D11201, oc-name=3Dxe12/1, odtn-connection-id=3Dconnection:12, odtn-= port-type=3Dclient, onos-index=3D112 port=3D201, state=3Denabled, type=3Doch, speed=3D100000 , lambda=3D{"chan= nelSpacing":"CHL_50GHZ","gridType":"DWDM","slotGranularity":4,"spacingMulti= plier":1}, oc-logical-channel=3D20101, oc-name=3Doe1/1, odtn-connection-id= =3Dconnection:1, odtn-port-type=3Dline, onos-index=3D201, signalType=3DODU4= , tunable=3Dtrue port=3D202, state=3Denabled, type=3Doch, speed=3D100000 , lambda=3D{"chan= nelSpacing":"CHL_50GHZ","gridType":"DWDM","slotGranularity":4,"spacingMulti= plier":1}, oc-logical-channel=3D20102, oc-name=3Doe1/2, odtn-connection-id= =3Dconnection:2, odtn-port-type=3Dline, onos-index=3D202, signalType=3DODU4= , tunable=3Dtrue port=3D203, state=3Denabled, type=3Doch, speed=3D100000 , lambda=3D{"chan= nelSpacing":"CHL_50GHZ","gridType":"DWDM","slotGranularity":4,"spacingMulti= plier":1}, oc-logical-channel=3D20201, oc-name=3Doe2/1, odtn-connection-id= =3Dconnection:3, odtn-port-type=3Dline, onos-index=3D203, signalType=3DODU4= , tunable=3Dtrue port=3D204, state=3Denabled, type=3Doch, speed=3D100000 , lambda=3D{"chan= nelSpacing":"CHL_50GHZ","gridType":"DWDM","slotGranularity":4,"spacingMulti= plier":1}, oc-logical-channel=3D20202, oc-name=3Doe2/2, odtn-connection-id= =3Dconnection:4, odtn-port-type=3Dline, onos-index=3D204, signalType=3DODU4= , tunable=3Dtrue port=3D205, state=3Denabled, type=3Doch, speed=3D100000 , lambda=3D{"chan= nelSpacing":"CHL_50GHZ","gridType":"DWDM","slotGranularity":4,"spacingMulti= plier":1}, oc-logical-channel=3D20301, oc-name=3Doe3/1, odtn-connection-id= =3Dconnection:5, odtn-port-type=3Dline, onos-index=3D205, signalType=3DODU4= , tunable=3Dtrue port=3D206, state=3Denabled, type=3Doch, speed=3D100000 , lambda=3D{"chan= nelSpacing":"CHL_50GHZ","gridType":"DWDM","slotGranularity":4,"spacingMulti= plier":1}, oc-logical-channel=3D20302, oc-name=3Doe3/2, odtn-connection-id= =3Dconnection:6, odtn-port-type=3Dline, onos-index=3D206, signalType=3DODU4= , tunable=3Dtrue port=3D207, state=3Denabled, type=3Doch, speed=3D100000 , lambda=3D{"chan= nelSpacing":"CHL_50GHZ","gridType":"DWDM","slotGranularity":4,"spacingMulti= plier":1}, oc-logical-channel=3D20401, oc-name=3Doe4/1, odtn-connection-id= =3Dconnection:7, odtn-port-type=3Dline, onos-index=3D207, signalType=3DODU4= , tunable=3Dtrue port=3D208, state=3Denabled, type=3Doch, speed=3D100000 , lambda=3D{"chan= nelSpacing":"CHL_50GHZ","gridType":"DWDM","slotGranularity":4,"spacingMulti= plier":1}, oc-logical-channel=3D20402, oc-name=3Doe4/2, odtn-connection-id= =3Dconnection:8, odtn-port-type=3Dline, onos-index=3D208, signalType=3DODU4= , tunable=3Dtrue port=3D209, state=3Denabled, type=3Doch, speed=3D100000 , lambda=3D{"chan= nelSpacing":"CHL_50GHZ","gridType":"DWDM","slotGranularity":4,"spacingMulti= plier":1}, oc-logical-channel=3D20501, oc-name=3Doe5/1, odtn-connection-id= =3Dconnection:9, odtn-port-type=3Dline, onos-index=3D209, signalType=3DODU4= , tunable=3Dtrue port=3D210, state=3Denabled, type=3Doch, speed=3D100000 , lambda=3D{"chan= nelSpacing":"CHL_50GHZ","gridType":"DWDM","slotGranularity":4,"spacingMulti= plier":1}, oc-logical-channel=3D20502, oc-name=3Doe5/2, odtn-connection-id= =3Dconnection:10, odtn-port-type=3Dline, onos-index=3D210, signalType=3DODU= 4, tunable=3Dtrue port=3D211, state=3Denabled, type=3Doch, speed=3D100000 , lambda=3D{"chan= nelSpacing":"CHL_50GHZ","gridType":"DWDM","slotGranularity":4,"spacingMulti= plier":1}, oc-logical-channel=3D20601, oc-name=3Doe6/1, odtn-connection-id= =3Dconnection:11, odtn-port-type=3Dline, onos-index=3D211, signalType=3DODU= 4, tunable=3Dtrue port=3D212, state=3Denabled, type=3Doch, speed=3D100000 , lambda=3D{"chan= nelSpacing":"CHL_50GHZ","gridType":"DWDM","slotGranularity":4,"spacingMulti= plier":1}, oc-logical-channel=3D20602, oc-name=3Doe6/2, odtn-connection-id= =3Dconnection:12, odtn-port-type=3Dline, onos-index=3D212, signalType=3DODU= 4, tunable=3Dtrue
Different from the scenario with emulators, we need to testing whether t= he created client-side connection works on this page. So, we don't use comm= and "stc -ENV_DEFAULT=3D/tmp/odtn/OCvar.= sh net-odtn-restconf" directly.
Firstly, we use the commands shown below to add two hosts to the network= :
cd ${HOM= E}/odtn-demo/cassini-demo source /tmp/odtn/OCvar.sh sudo ./name-space.sh h1 ens6f0 2 10.0.0.1 sudo ./name-space.sh h2 ens6f1 2 10.0.0.2 curl -X POST --user onos:rocks --header 'Content-Type: application/json' --= header 'Accept: application/json' -d@h1.json http://${OC1}:8181/onos/v1/hos= ts curl -X POST --user onos:rocks --header 'Content-Type: application/json' --= header 'Accept: application/json' -d@h2.json http://${OC1}:8181/onos/v1/hos= ts
Then the two hosts could be found in ONOS:
sdn@root= > hosts = 22:02:17 id=3D3C:FD:FE:9E:6F:C8/2, mac=3D3C:FD:FE:9E:6F:C8, locations=3D[netconf:10.= 128.200.2:830/101], vlan=3D2, ip(s)=3D[10.0.0.1], innerVlan=3DNone, outerTP= ID=3Dunknown, provider=3Dhost:org.onosproject.rest, configured=3Dtrue id=3D3C:FD:FE:9E:6F:C9/2, mac=3D3C:FD:FE:9E:6F:C9, locations=3D[netconf:10.= 128.200.3:830/101], vlan=3D2, ip(s)=3D[10.0.0.2], innerVlan=3DNone, outerTP= ID=3Dunknown, provider=3Dhost:org.onosproject.rest, configured=3Dtrue
We test ping between H1 and H2, and fails:
sdn@odtn= :~/odtn-demo/cassini-demo$ sudo ip netns exec h1 ping -I ens6f0.2 10.0.0.2 PING 10.0.0.2 (10.0.0.2) from 10.0.0.1 ens6f0.2: 56(84) bytes of data. ^C --- 10.0.0.2 ping statistics --- 29 packets transmitted, 0 received, 100% packet loss, time 28661ms sdn@odtn:~/odtn-demo/cassini-demo$ sudo ip netns exec h2 ping -I ens6f1.2 1= 0.0.0.1 PING 10.0.0.1 (10.0.0.1) from 10.0.0.2 ens6f1.2: 56(84) bytes of data. ^C --- 10.0.0.1 ping statistics --- 54 packets transmitted, 0 received, 100% packet loss, time 54254ms
2.2.2 Creation