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

You can try with ODL OVSDB northbound API. I have tried with below steps:

  • Install features.(I'm not sure all of these are required)

    feature:install odl-l2switch-all odl-ovsdb-all odl-base-all odl-aaa-authn odl-restconf-all odl-nsf-all odl-adsal-northbound odl-mdsal-apidocs odl-dlux-all

    feature:install odl-ovsdb-southbound-api odl-ovsdb-southbound-impl odl-ovsdb-southbound-impl-rest odl-ovsdb-southbound-impl-ui odl-openflowplugin-all-li odl-openflowplugin-adsal-compatibility-all


  • Connect OVS to Controller.
  • Try to get OVS nodes by Rest API with POSTMAN. > http://172.171.2.156:8282/ovsdb/nb/v3/node
  • Create tunnel bridge, port, interface.

    Crete Bridge POST: http://172.171.2.156:8282/ovsdb/nb/v2/node/OVS/172.171.2.22:57171/tables/bridge/rows/

    BODY: { "row": { "Bridge": { "name": "s1" } } }

    Create Port POST: http://172.171.2.156:8282/ovsdb/nb/v2/node/OVS/172.171.2.22:61640/tables/port/rows

    BODY: { "parent_uuid":"4d2742b0-e5d8-4228-8c56-4a283f50038e", "row":{ "Port":{ "name":"vtep" } } }

    Create Vxlan Interface Post:

    BODY: { "parent_uuid": "cbe6c477-8561-4fbb-84ae-66949941fe06", "row":{ "Interface":{ "name":"vtep" } } }

  • Update VxLAN Interface.

    PUT: http://172.171.2.156:8282/ovsdb/nb/v2/node/OVS/172.171.2.22:61640/tables/interface/rows/230dae56-3ea3-4cd9-9b0f-c551f2634791

    BODY: { "row":{ "Interface":{ "type":"vxlan", "ofportrequest":10, "options": [ "map", [ ["key","flow"], ["localip","192.168.106.130"], ["remote_ip","192.168.106.129"] ] ] } } }


Note: in URL follow v2/node/ for example {OVS/172.171.2.22:57171} is the OVS node. you can replace according to rest response. And UUID part you can refer to OVSDB guide.