Remove print of tenant_name when not available

This patch removes the prin of the tenant_name
when it is not available which causes a
traceback.

Change-Id: I7f8923a1dbe986216be1cee43ade5e353efe6876
Closes-bug: #1346817
* Apply vrf translate rule on egress traffic also, so that RPF
  information is setup properly
* Test case for same

Change-Id: I0a0facff15f978c2499453c36dc758237fe8c35a
When the collector service is restarted, contrail-analytics.rules takes care of flushing the UVE db in redis.
However, when supervisor-analytics service is restarted, then old UVEs remain in the redis.
This is because redis is no longer part of the supervisor-analytics.
Therefore, flush the UVE db from redis when collector connects to redis for the first time.
Closes-Bug: #1347133

Change-Id: If6a455f074b34499827201793fa20d7c7f3c91ea
Use cluster-id if provided as db_prefix for api-server/schema-t/svc-mon

Change-Id: Ibaa6f30dccb212a831290a3b9c7dbd312c6872f0
Fix couple of issues related to bgp_server_test.

Following changes are implemented:

- Shutdown the TcpServer right away instead of doing it from Config task
- Tweak CloseDeferred test to work around a race condition in the test

Change-Id: I55f54c415f399a5cc7b1d0bd6743d24bd44cc06f
* Add service vlan routers with ecmp flag, if instance ip is in
  active-active mode
* Test case for same

Change-Id: I58e79ae328e1647adf0bf6215b1feba5330ff605
fix the removal of floating-ip-pools which was happening twice.

Change-Id: Ie45a8aa2617d2112a2575511d82b1e0f6d49c57c
Bug 1337711: List SG for all projects when filtering only by name

Change-Id: I08c010497d901beb9eb9cbe8a321dbec25de2fde
Closes-Bug: 1337711
return subnet dict to plugin as per neutron compatibility spec

Change-Id: Ib5f8492912e46f0589828f7eba5761c09f91043b
Fix race condition in TcpSession::CloseInternal method.

It's possible that calling the EventObserver for a TcpSession causes
another thread to call TcpServer::DeleteSession for the TcpSession in
question. The existing code already protects against deletion of the
TcpSession this by taking a reference on it via an intrusive pointer.

It's also possible that the TcpServer itself gets deleted via another
thread as an indirect result of calling the EventObserver.  If this
happens before the call to the OnSessionClose has been completed, we
end up accessing freed memory and crash.

This problem happens occasionally when running bgp_peer_close_test as
the XmppClient Shutdown happens around the same time that the client
received a TcpClose due to Shutdown on the XmppServer side.

Fix is to use a intrusive back pointer (TcpServerPtr) in TcpSession.

Change-Id: I5fbb00a76a333f6b1dea2e19c2c1c1e3cd2079d4
Orderly deletion of Xmpp objects in Agent while applying newly learnt
services via discovery.

A new set of services learnt via discovery with the present services
DOWN should result in orderly cleanup of Xmpp objects. Now we trigger
a managed delete of XmppClient object which will internally
delete the XmppClientConnection and XmppChannel object.

o Need to explicitly delete AgentXmppChannel, AgentIfmapXmppChannel,
  AgentDnsXmppChannel, XmppInit
o Note we reset XmppClient object from agent data-structure but
  the actual object can get deleted at a later time as part of
  the Managed Delete.
o Apply newly learnt services from discovery while the older
  objects are being deleted.

Xmpp Library Changes (Nischal Seth)
===================================
o Fix bug that may cause premature delete of XmppClientConection.
o XmppClientConnection::DeleteActor's MayDelete method should not
  return true if the XmppClient has no registered event handlers.
  It should only look at XmppClientConnection's receiver count.

      The above change uncovered a bug in NetworkAgentMock wherein the
  AgentPeer constructor registered for xmps::CONFIG on the channel but
  never unregistered.
o Add methods to XmppServerConnection and XmppClientConnection to
  return pointers to XmppServer/XmppClient as appropriate to avoid
  static_cast all over the place.

Change-Id: I1018b03b4f9124955b2be8cd0a851f0edd72030a
Fix concurrency issue for the SNAT

Change-Id: I8e28527de44453732129c03d939d4988f2161c3a
[Schema transformer] Clear logging on IF-MAP

On each IF-MAP events/notifications, the schema raise a log.
That patch only raise a log if a schema's method is calling when an
IF-MAP event occurred.

Change-Id: Ib2f0596679f50a6a5efaa0a3afd34239693a48ea
* Upon transition from ECMP nexthop to non ecmp nexthop,
  reset composite NH key maintained in path.
  When transition happens to unicast nexthop, and a resync of the
  route happens agent used to use composite NH key and make the route
  point to wrong nexthop. Correcting the same.
  Fix for bug 1348474

Change-Id: I6acc6289d46ac5233104f141b1c0d025c2a9e7c4
Send Inter VN stats (which is Oracle Stats) always regardless of whether it has changed since previous send.
Change-Id: Ifabdbbaee43fa77ba7d659458d7f5cebdfeb2995
Merge "Fix couple of issues related to bgp_server_test."
Merge "* Add service vlan routers with ecmp flag, if instance ip is in   active-active mode * Test case for same"
Merge "* Apply vrf translate rule on egress traffic also, so that RPF   information is setup properly * Test case for same"
Merge "When the collector service is restarted, contrail-analytics.rules takes care of flushing the UVE db in redis. However, when supervisor-analytics service is restarted, then old UVEs remain in the redis. This is because redis is no longer part of the supervisor-analytics. Therefore, flush the UVE db from redis when collector connects to redis for the first time. Closes-Bug: #1347133"
Merge "Use cluster-id if provided as db_prefix for api-server/schema-t/svc-mon"