Re: [netvirt-dev] How to acquire dpn-id from TOR device in L2GWscenario?


"陈庄洋 <chenzhuangyang@...>
 

Hi Daya,

Thanks for your help.

Could I consider I could use "vtep:schema-add" CLI command for pushing the OVSDB config to TOR?

Is this the wiki you have mentioned?[1]

Thanks,
ZHUANGYANG

[1]. https://wiki.opendaylight.org/view/NetVirt:_L2Gateway_HowTo
 
------------------ Original ------------------
Date:  Thu, Apr 26, 2018 07:03 PM
To:  "陈庄洋"<chenzhuangyang@...>; "netvirt-dev"<netvirt-dev@...>; "ovsdb-dev"<ovsdb-dev@...>;
Subject:  RE: [netvirt-dev] How to acquire dpn-id from TOR device in L2GWscenario?
 

Hi,

Odl does not support configuring tunnels to tor’s explicitly.

Tor’s are expected to set up their tunnels based on the ovsdb config pushed by the controller in the vtep schema, and odl will push openflow rules for tunnels from vswitches towards tor.

To enable this -

Please add odl ip as manager ip on the tor ovsdb, so that it connects to the controller, then use the openstack l2gw plugin, and configure an l2gw with the device id set to the tor’s device id (from its ovsdb table).

When you create a neutron network, with vm’s on some ovs switches, and an l2gw connection-create on the tor mapping that network to a vlan, odl will create tunnels from each vswitch connected to the vm’s to the tor, and also add vswitch vtep ips into the tor’s ovsdb tables. The expectation is that the tor will use this for tunnels originating from it.

Victor, I think you have a wiki page for it?

 

 

Thanks,

daya

 

From: netvirt-dev-bounces@... [mailto:netvirt-dev-bounces@...] On Behalf Of ???
Sent: Thursday, April 26, 2018 4:19 PM
To: netvirt-dev <netvirt-dev@...>; ovsdb-dev <ovsdb-dev@...>
Subject: [netvirt-dev] How to acquire dpn-id from TOR device in L2GW scenario?

 

Hi,

 

I apply NetVirt with OpenStack, and a TOR device(support OVSDB protocol) in L2GW scenario.

 

When I configuring tunnels, OpenDaylight requires dpn-id.

 

I  use the following curl call.

curl -s -u admin:admin -X GET http://${ODL_IP}:8181/restconf/operational/odl-interface-meta:bridge-ref-info/

This curl call should give the dpn ids. But not. Then I checked the connection between TOR and OpenDaylight, via "ovsdb-client dump hardware_vtep" and "curl -s -u admin:admin -X GET http://192.168.37.1:8081/restconf/operational/network-topology:network-topology/ | python -mjson.tool".

Both of them verify the "is-connected": true. However, I still can't get dpn-id from TOR, via "ovsdb-cline dump"(Bridge table indicates blank value for controller and datapth-id, even I set manager and controller manually).

Maybe it is caused by TOR device runs the ovsdb-server, but not the ovs-vswitchd?

 

Thanks,

ZHUANGYANG

 

 

 

Join z.archive.ovsdb-dev@lists.opendaylight.org to automatically receive all group messages.