Test to check the default gateway ip allocated

Change-Id: Iebbcaef1f819f51e4c4b26bee50982d87777ee19
Fix potential deadlock in vnc_openstack

under certain circumstances (that alway happen in
contrail-installer + devstack environnement) keystoneclient
may authenticate before endpoints are populated in keystone.
In that case, It'll be usable to list projects, but not to
read them. Thus, it won't be reset by resync_all_projects,
but neutron api will stay stuck as projects can't be added
to vnc.

Closes-bug: #1384265
Change-Id: Iefd107604ae9f16a2b91d74c188781ef1a52394f
(1) Move the following APIs from base/util.h to net/address.cc/h
GetIp6SubnetAddress
GetIp4SubnetAddress

(2) Also change the signature of API IsIp4SubnetMember and IsIp6SubnetMember to use aliases Ip4Address/Ip6Address instead of boost names.

(3) Update the callers to use the new moved API from address.cc

All the existing agent Unit test-cases have passed

Change-Id: I15844c52eefe5d88050285d1fcfc2e80e294bd63
Closes-Bug: #1381334
[Schema] Clean VMI and instance IP correctly

The VirtualMachineInterfaceST object list is not clean properly and
growing with time.

- Add function to catch the VMI delete event.
- If schema fails to read VMI or IIP on the API, delete IIP or
VirtualMachineInterfaceST into the list.
- And that patch also exit the 'process_pool_result' method if none of the
poll requests call a schema method.

Closes-bug: #1382397
Change-Id: Ib386ea5b53fbaea4ae15b34c1c74837b06b258ef
Fix the device_id and device_owner of gw

This patch fix the values returned for the
gateway port of a router.
In order to be able to get the device_id
when doing a neutron port-show this patch
also add a new link in schema between
the service instance and the logical
router.

Change-Id: I98f8a268a3bae94e73e11ac40784009652faf848
Improvements to RTargetGroup intropsect

Following changes are implemented:

- Allow filtering the output of ShowRtGroupReq by target
- ShowRtGroupSummaryReq lists targets without dependent routes
- ShowRtGroupPeerReq lists all targets for a peer
- Targets in output of summary response are clickable

Change-Id: I2c5661f6414b5335c5498f61fd0922e5da0dd4e5
Closes-Bug: 1382634
Merge "Fix potential deadlock in vnc_openstack"
Merge "Test to check the default gateway ip allocated"
Merge "Fix the device_id and device_owner of gw"
Merge "[Schema] Clean VMI and instance IP correctly"
Merge "(1) Move the following APIs from base/util.h to net/address.cc/h GetIp6SubnetAddress GetIp4SubnetAddress"
Partial-Bug: #1378454
 -Feature: Send IPMI information of the cluster from server-manager
           to Cassandra database
 -Fix: Created ipmi.sandesh file to hold the structure to be sent.
       Modified viz.sandesh and vns.sandesh to have the sandesh structure
       elements.
  Made changes for review-1
  Made changes for review-2
Change-Id: I62b15ff36e535ad70cc209f43aae6200243a4b1e
Make moduleid names identical to service names.
Changes as part of this bug makes moduleid names same as the
names used for services. This impacts names of other entities
also like discovery service names.

Change-Id: I4141223e823e67049e7ec909f3254c60d772f8e7
Closes-PR: 1383577
Support to ignore Delete request for DBEntry

Requirement:
------------
VM-Interface in agent can be added/deleted by two components
  - Thrift message
  - IFMap Config

Agent maintains a bitmask of modules that have requested addition of
an interface.

Agent should delete VM Interface only when both modules send request to
delete it. When a module requests for DBEntry to be deleted, the
corresponding bit is cleared. Delete of VM Interface is deferred till the
bitmask becomes 0

Solution:
---------
The return value of DBTable::Delete() API is changed from void to bool.
If the method returns TRUE, the DBEntry will be deleted. If the method
returns FALSE, the DBEntry is not deleted

Modified all existing Delete() methods to return TRUE

Change-Id: I42b000115301a67cc624a8b806d3b6f7d8165a4b
Merge "Make moduleid names identical to service names. Changes as part of this bug makes moduleid names same as the names used for services. This impacts names of other entities also like discovery service names."
Merge "Support to ignore Delete request for DBEntry"
Fix potential timing issue in db_test.cc

Read the delete-request-counter before enqueue. Reading counter after enqueue
can potentially run after the task from enqueue is done

Change-Id: If73d12c248f9f5734e16981d25337690a392befe
Merge "Fix potential timing issue in db_test.cc"
Merge "Improvements to RTargetGroup intropsect"
Cosmetic changes to rtarget_group.cc

Change-Id: I792efd90035e2d3523a83ce421d20962008d1a32