Bug-3425 : VM doesn't get the ip address from DHCP 66/21366/2
authorAnil Vishnoi <vishnoianil@gmail.com>
Thu, 28 May 2015 19:56:35 +0000 (01:26 +0530)
committerFlavio Fernandes <ffernand@redhat.com>
Fri, 29 May 2015 20:27:02 +0000 (20:27 +0000)
commit0b3c49823842fd721bd64b77ed1dcbce94acf1c7
treece40c70a985cf4228fe298221cce8776373c13f5
parentd049697e7538796674308eead9023b82156d9dac
Bug-3425 : VM doesn't get the ip address from DHCP
server, if network is not attached to the router

This failure happens when net-virt don't find tunnel port in
the Node update from operational data store.
It tries to extract termination point from node update which
doesn't have tunnel port termination point. And because
there are other termination point exist, it doesn't go and
read from data store. ProgrammeTunnelPort() method iterate
through these existing termination points and it doesn't find the
tunnel port and it returns without installing the Local Ingress
Bridge Rules. This patch first try to create a tunnel configuration
on integration bridge of both end node of the tunnel and then
installs the tunnel flows. Also while installing tunnel flows
It specifically look for tunnel port in the nodes update and  if
it doesn't find that it reads it from data store.

Change-Id: I61e70c230051908a12f6ea93b9b2d046b699eccb
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
openstack/net-virt-providers/src/main/java/org/opendaylight/ovsdb/openstack/netvirt/providers/openflow13/AbstractServiceInstance.java
openstack/net-virt-providers/src/main/java/org/opendaylight/ovsdb/openstack/netvirt/providers/openflow13/OF13Provider.java
openstack/net-virt/src/main/java/org/opendaylight/ovsdb/openstack/netvirt/MdsalHelper.java
openstack/net-virt/src/main/java/org/opendaylight/ovsdb/openstack/netvirt/api/Southbound.java
openstack/net-virt/src/main/java/org/opendaylight/ovsdb/openstack/netvirt/impl/SouthboundImpl.java