contrail-collector does UVE Updates based on messages from generators.
It also deletes UVE values from redis when generators disconnect.
We saw an instance where updates seems to happen just after a disconnect.
This causes contrail-analytics-api to return stale values for some UVE attributes.

Before the UVEUpdate script writes updates to redis, it should check that the generator
for which the update is being done is still connected (via the NGENERATORS set in redis)

Change-Id: If376bca64f5a8ba5be9eaa72a71d47a275b6eb20
Closes-Bug: #1383896
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"
Check for deleted AgentXmppChannel while updating new set of XmppServers learnt by Discovery.
Note, we delete the AgentXmppChannel in the same loop while configuring new connections.

Change-Id: Ie41dbd1c462e63686d182800c68fe1e42da223e0
Rename namespace manager class. It is going to be used to manage different types of instances.

Change-Id: Ie6fe77778577991fc430177f21fcb5a7e43eb7d6
  - "vcenter.datacenter" and "vcenter.dvswitch" added to properties file.
  - ".properties" file renamed to "vcenter-plugin.properties" file.

Change-Id: Ic32f0f3d35095966dfa7b0e68732ec9665b589a4
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
Teach Control Node to handle change in VN index

Following changes are implemented:

- OriginVn is no longer stored in the primary XMPP route
- OriginVn is added to secondary routes during replication
- Change in VN index triggers notification of all routes in the RI
- Replicator updates the OriginVn for secondary routes
- Virtual Network for primary routes in a VRF is obtained from RI

Change-Id: I987431be6970ecba35485317648af2624b01ad53
Closes-Bug: 1382640
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."