Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

Revision history [back]

click to hide/show revision 1
initial version

with VTN port mapping doesn't work ping between hosts

Hello,

I have mininet, and two switches with to hosts in each other H1 <-> S1 <-> S2 <-> H1 H1 pings H2 I deleted link between S1 and S2

Mininet connected to ODL as controller, and I see this switches and hosts in ODL. now topology is: H1 <-> S1 and separate H2 <-> S2

I want connect H1 to H2 throught virtual bridge in VTN

I did this:

create VTN tenant curl --user "admin":"admin" -H "Accept: application/json" -H \ "Content-type: application/json" -X POST \ http://localhost:8080/controller/nb/v2/vtn/default/vtns/Tenant1 -d ' {"description": "Virtual Tenant 1 for NC network"}'

next I created virtual bridge in VTN curl --user "admin":"admin" -H "Accept: application/json" -H \ "Content-type: application/json" -X POST \ http://localhost:8080/controller/nb/v2/vtn/default/vtns/Tenant1/vbridges/vbr1 -d '{}'

after that was created virtual interfaces: curl --user "admin":"admin" -H "Accept: application/json" -H \ "Content-type: application/json" -X POST \ http://127.0.0.1:8080/controller/nb/v2/vtn/default/vtns/Tenant1/vbridges/vbr1/interfaces/vif1 -d '{}' curl --user "admin":"admin" -H "Accept: application/json" -H \ "Content-type: application/json" -X POST \ http://127.0.0.1:8080/controller/nb/v2/vtn/default/vtns/Tenant1/vbridges/vbr1/interfaces/vif2 -d '{}' curl --user "admin":"admin" -H "Accept: application/json" -H \ "Content-type: application/json" -X POST \

And I added port mapping with correct ports and hosts addresses: curl --user "admin":"admin" -H "Accept: application/json" -H \ "Content-type: application/json" -X PUT \ http://localhost:8080/controller/nb/v2/vtn/default/vtns/Tenant1/vbridges/vbr1/interfaces/vif2/portmap \ -d '{"node": {"type": "OF", "id": "00:00:00:00:00:02"} , "port": {"name": "s2-eth2"}}'

curl --user "admin":"admin" -H "Accept: application/json" -H \ "Content-type: application/json" -X PUT \ http://localhost:8080/controller/nb/v2/vtn/default/vtns/Tenant1/vbridges/vbr1/interfaces/vif1/portmap \ -d '{"node": {"type": "OF", "id": "00:00:00:00:00:01"} , "port": {"name": "s1-eth1"}}'

I request port status vif1 curl --user "admin":"admin" -H "Accept: application/json" -H "Content-type: application/json" -X GET http://127.0.0.1:8080/controller/nb/v2/vtn/default/vtns/Tenant1/vbridges/vbr1/interfaces/vif1 {"enabled":true,"name":"vif1","state":0,"entityState":1}

and port status vif2 curl --user "admin":"admin" -H "Accept: application/json" -H "Content-type: application/json" -X GET http://127.0.0.1:8080/controller/nb/v2/vtn/default/vtns/Tenant1/vbridges/vbr1/interfaces/vif2 {"enabled":true,"name":"vif2","state":0,"entityState":1}

as I see ports are mapped, but ping between H1 and H2 doesn't work, and there aren't any changes in ODL web interfaces.

I use ODL with installed VTN manager.

As I understood topology should be: H1 <-> S1 <-> vbr1 <-> H2 <-> S2

Please, what I do wrong? And how to do successful port mapping in VTN?