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


VTN doesn't forwarding between switches link.

asked 2015-08-09 07:50:46 -0800

anonymous user


VTN doesn't forwarding between switches link.

Hi, opendaylight people.

I trying some tutorial by VTN.

Used follow softwares:

  • CentOS7-1503
  • distribution-karaf-0.3.0-Lithium
  • mininet 2.2.1
  • openvswitch-2.1.2-2.el7.centos.1.x86_64

VTN install on karaf, and run the mininet topology. Reference this page (, and read as VTN Manager instead of VTN Coordinator.

  1. VTN install

install on karaf.

opendaylight-user@root>feature:install odl-vtn-manager-rest
Refreshing bundles org.apache.aries.util (9)
GossipRouter started at Sat Aug 01 04:03:43 JST 2015
Listening on port 12001 bound on address
Backlog is 1000, linger timeout is 2000, and read timeout is 0
  1. Run mininet

tree topology(3 switches, 4 hosts).

$ sudo mn --topo tree,depth=2
mininet> net
h1 h1-eth0:s2-eth1
h2 h2-eth0:s2-eth2
h3 h3-eth0:s3-eth1
h4 h4-eth0:s3-eth2
s1 lo:  s1-eth1:s2-eth3 s1-eth2:s3-eth3
s2 lo:  s2-eth1:h1-eth0 s2-eth2:h2-eth0 s2-eth3:s1-eth1
s3 lo:  s3-eth1:h3-eth0 s3-eth2:h4-eth0 s3-eth3:s1-eth2
  1. VTN create used the VTN Manager


$ curl --user "admin":"admin" -H "Accept: application/json" -H "Content-type: application/json" -X POST http://localhost:8282/controller/nb/v2/vtn/default/vtns/Tenant1 -d '{"description": "My First Virtual Tenant Network"}'
$ curl --user "admin":"admin" -H "Accept: application/json" -H "Content-type: application/json" -X POST http://localhost:8282/controller/nb/v2/vtn/default/vtns/Tenant1/vbridges/vBridge1 -d '{}'
$ curl --user "admin":"admin" -H "Accept: application/json" -H "Content-type: application/json" -X POST http://localhost:8282/controller/nb/v2/vtn/default/vtns/Tenant1/vbridges/vBridge1/interfaces/if1 -d '{}'
$ curl --user "admin":"admin" -H "Accept: application/json" -H "Content-type: application/json" -X POST http://localhost:8282/controller/nb/v2/vtn/default/vtns/Tenant1/vbridges/vBridge1/interfaces/if2 -d '{}'
$ curl --user "admin":"admin" -H "Accept: application/json" -H "Content-type: application/json" -X POST http://localhost:8282/controller/nb/v2/vtn/default/vtns/Tenant1/vbridges/vBridge1/interfaces/if3 -d '{}'
$ curl --user "admin":"admin" -H "Accept: application/json" -H "Content-type: application/json" -X POST http://localhost:8282/controller/nb/v2/vtn/default/vtns/Tenant1/vbridges/vBridge1/interfaces/if4 -d '{}'
$ curl --user "admin":"admin" -H "Accept: application/json" -H "Content-type: application/json" -X PUT http://localhost:8282/controller/nb/v2/vtn/default/vtns/Tenant1/vbridges/vBridge1/interfaces/if1/portmap -d '{"node": {"type": "OF", "id": "00:00:00:00:00:00:00:02"}, "port": {"name": "s2-eth1"}}'
$ curl --user "admin":"admin" -H "Accept: application/json" -H "Content-type: application/json" -X PUT http://localhost:8282/controller/nb/v2/vtn/default/vtns/Tenant1/vbridges/vBridge1/interfaces/if2/portmap -d '{"node": {"type": "OF", "id": "00:00: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:8282/controller/nb/v2/vtn/default/vtns/Tenant1/vbridges/vBridge1/interfaces/if3/portmap -d '{"node": {"type": "OF", "id": "00:00:00:00:00:00:00:03"}, "port": {"name": "s3-eth1"}}'
$ curl --user "admin ...
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-08-14 17:17:48 -0800

gvrangan gravatar image

Please check the vtn-inventory whether the interconnects have been discovered by vtn-manager or not. You can check the inventory from dlux also. please fun feature:install odl-dlux-all and then access http://<odl_ip>:8181/index.html, Login to dlux and check topology. </odl_ip>

Please restart mininet and try once. We have this tested multiple times, this patch fault may be intermittent.

edit flag offensive delete publish link more
Login/Signup to Answer


Asked: 2015-08-09 07:50:46 -0800

Seen: 284 times

Last updated: Aug 14 '15