BUG-4892:fixed Not getting Arp flows if there is no Router 57/33857/1
authorhari.pr <hari.pr@hcl.com>
Tue, 26 Jan 2016 05:56:45 +0000 (11:26 +0530)
committerSam Hague <shague@redhat.com>
Mon, 1 Feb 2016 15:50:03 +0000 (15:50 +0000)
commit0204e4324aa972983c52a7a81d64c45dfb4bb26c
tree25c435788e509dab21f8cd0ffcb6adb3f5b168f4
parent9d0046e3ae85b596c8ae9cb10f8abda09eb40114
BUG-4892:fixed Not getting Arp flows if there is no Router

  *Moved the ARP handling part to a new file, This way the
   ARP Entries are not restricted to l3 operations only.
  *Tested L2 and L3 operations.

From our understanding

In router scenario whenever router created using openstack, netvirt
south bound handler will receive interface update event. ARP responder
will program the arp rules for the router interface event through
distributed arp service class.
(openstack àrouter create àsouthbound handleràprocess event àprocess interface updateàARP handleinterface eventàprogram ARP)

In normal L2 scenario whenever tenant network created using openstack,
netvirt  will receive neutron port add event distributed arp service
class use this neutron port details to program arp rules for the DHCP IP.

Whenever VM instance created using openstack, netvirt will receive
neutron port event distributed arp service class use this neutron port
details to program arp rules for particular VM IP.

 (openstackàVM instance à port handleràprocess eventà do neutronport(ADD/UPDATE/DELETE) à handle port àprogram ARP)

Change-Id: Ie56bd5d407f501b8a82f9fe3ad0672e57448eeef
Signed-off-by: hari.pr <hari.pr@hcl.com>
openstack/net-virt/src/main/java/org/opendaylight/ovsdb/openstack/netvirt/AbstractEvent.java
openstack/net-virt/src/main/java/org/opendaylight/ovsdb/openstack/netvirt/ConfigActivator.java
openstack/net-virt/src/main/java/org/opendaylight/ovsdb/openstack/netvirt/PortHandler.java
openstack/net-virt/src/main/java/org/opendaylight/ovsdb/openstack/netvirt/SouthboundHandler.java
openstack/net-virt/src/main/java/org/opendaylight/ovsdb/openstack/netvirt/impl/DistributedArpService.java [new file with mode: 0644]
openstack/net-virt/src/main/java/org/opendaylight/ovsdb/openstack/netvirt/impl/NeutronL3Adapter.java
openstack/net-virt/src/test/java/org/opendaylight/ovsdb/openstack/netvirt/PortHandlerTest.java
openstack/net-virt/src/test/java/org/opendaylight/ovsdb/openstack/netvirt/SouthboundHandlerTest.java
openstack/net-virt/src/test/java/org/opendaylight/ovsdb/openstack/netvirt/impl/NeutronL3AdapterTest.java