How to acquire dpn-id from TOR device in L2GW scenario?
"陈庄洋 <chenzhuangyang@...>
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
|
suneelu
Hi, Apart from TOR you must have another one or two regular compute or ovs instance which are connected to controller. It is better to test it with auto tunnel enabled on controller. Please check the following link on how to enable auto tunnel. Once the other ovs instances are setup with external_ids:of-tunnel=true and other_config:local_ip=192.168.56.102 and the other parameters as suggested in the doc, they should appear in restconf/config/itm:transport-zones/
When it comes to TOR , we do not look at its DPN ID from its openvswitch schema. On the TOR do not do the above config. Once it is connected to controller it should appear in /restconf/operational/network-topology:network-topology/ , if it is not appearing then that should be a bug.
Once we have the other dpns in restconf/config/itm:transport-zones/ and TOR in /restconf/operational/network-topology:network-topology/ Please do the next steps. Network, ports, l2gw and connection creations. You may create a jira and share the logs/dumps if you got stuck. Thanks, Suneelu
From: ovsdb-dev-bounces@... [mailto:ovsdb-dev-bounces@...]
On Behalf Of ???
Sent: Thursday, April 26, 2018 4:19 PM To: netvirt-dev; ovsdb-dev Subject: [ovsdb-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
|