BgpConfig code is too aggressive in treating nodes as deleted.

BgpPeers sometimes do not come up when repeatedly doing delete
and add in the bgp_stress_test via [DELETE|ADD]_BGP_PEER events.

Root cause is that the config code does not look at IFMap nodes
that have no neighbors in the graph i.e. it considers them to
be deleted.  This can cause a problem if a bgp-router node is
added and processed before parent link to the routing-instance
has been processed.  In this case, the BgpProtocolConfig that
corresponds to the bgp-router is not created.

Fix is to not consider IFMap nodes without neighbors as deleted.

Also fix minor issue wherein the creation of a BgpPeeringConfig
would get logged as a create and an update.

Change-Id: I44c1d6de17a7a495cc18a5ddd20a05dde8b8b3fb
Store the pool provider

Change-Id: Iec609cec7d0dce522e1b63ca15a591be15d50640
Add availability zone to service instance schema

Change-Id: I0d1365650579488c29cf2d362c874df3c548742d
Partial-Bug: 1342969
* Enable policy on service interface

Change-Id: I3f00282bdff254c1275fd0368654c3665cf096ba
Set the ip_address_mode according to scale out configuration. This is done to support ECMP with allowed address pair changes

Change-Id: I3574b157398eb47d028f4e0f11b884b6ea15ca4d
Speedup API server startup:
1. Accumulate ifmap config message during resync window and publish bulk messages. Every 1Mb of config is sent in one shot.
2. Maintain a cache of ifmap config and refer to it while updating the ifmap server.
3. While updating an entry, group the PublishUpdate messages and ensure only one update is sent.
4. Use async method to send message to ifmap.

Generate DS changes are sent in another review.

Code changes are from Pedro, Ajay and me.

Change-Id: I7a2180c3e91791b1f8b266ef4a16739760a5c8d2
Generate ICMP DF error

Change-Id: I701cf51cc1738658a5894bf7f1ede6a48a7f0106
Allow multiple instances of test program to run

Change-Id: Ie547b4e3a96bd86c0113fff934c540e4958f9045
PR:2209&2922 - Database Purge changes

Change-Id: Iadee42bb930f4d0d3d5c7e0948e8b30e90348b30
On network creation raise Network Already exists error if network is
already created.

Change-Id: Iffcf5ad50d3fc2f2183b2559d8319d866759dfee
* Delete service vlan nh, mpls label upon interface deactivation
* Test case for same

Change-Id: I72c79592b580558b801050c7dc1947c585b55af2
Merge "* Enable policy on service interface"
option to add floating ip dns entry in dashed ip notation

Change-Id: I20deb9110837ed3484cb48ae2dbc2097a7ca05b5
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
http: HttpClient: add ClearCallback()

Added to prevent HttpClient from calling a registered callback method. Useful
ie. when you'd like to abandon the request.

Change-Id: If5a8147f155b704515ea6b052100da2e54e331d8
Signed-off-by: Bartlomiej Wolowiec <bartlomiej.wolowiec@codilime.com>
Signed-off-by: Mateusz Zalega <mateusz.zalega@codilime.com>
Make xmmp tests more robust.

Following changes are implemented:

- Fix race condition in updating XmppServer connection count
- Add xmpp peer configured/negotiated hold times to introspect
- Lay groundwork for xmpp hold time negotiation
- Use consistent APIs to clear one or all compute node connections
- Remove unused method XmppChannelCleanup from XmppChannel
- Simplify connection management code in XmppServer and XmppClient
- Move xmpp_session_test from flaky to normal

Also make a number of cosmetic changes to modified files.

Change-Id: If8720c4ed9c0755ec30e1b096ae5b8a9536c3381
- The inconsistency in UVE is due to failure in UVE deletion upon generator disconnect.
  In delrequest.lua, db # is not set before querying the UVE info from redis for deletion
  and this causes the UVEs originated by the generator to remain in redis even after disconnection.
- Added a nil check for ‘href’ attribute in decoded json message
Closes-Bug: #1346176

Change-Id: I9416f7f6c8f68629e21bf5c3b4e978d183dd046d
Fix query engine crash due to corruption caused by calling GetUint() instead of GetUint64()

Change-Id: Icf8ed9763028d009ea37cb3fb0585300fa96bdc6
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