Add a service instance and namespace manager for SNAT

Change-Id: I5dc1cab80e9988c42e5f2526ceed924bee86cafb
Fix some SNAT issues

This patch fixes some issues and
add a unit test related to the fix.

Change-Id: I4ccb65960e2d7892d2a34724df34e3f75d1385a8
bfd: schema: added IETF BFD as defined in RFC5880

Change-Id: Iffba8ee97309a5342c965c542fdf25238801db39
Signed-off-by: Mateusz Zalega <mateusz.zalega@codilime.com>
bfd: schema: added a schema for project's BFD data.

bfd-session element is linked with bgp-router via bfd-session-enabled link,
making BGP session monitoring possible.

Change-Id: I4e97403dd3a43327695b7f823902689c0cb0fcf6
Signed-off-by: Mateusz Zalega <mateusz.zalega@codilime.com>
Defer delete of peer till its reference is removed from RTGroupManager

Change-Id: I0bcfb3be20a3b01ae895badd46285fee4ee6affa
On hitting max pending updates to rabbit (via configurable knob rabbit_max_pending_updates) refuse to do stateful changes (put/post/del)
Add unit test for this.

Change-Id: Ia7965626d840adda23dc16903a8afe1556bd1f83
use right var in reporting exception in ref_update

Change-Id: I3b00a9c14c1f3993b0f1bf673cff28ae14030279
IP allocation starts from reverse

After api server is restarted, the IP allocated
to a port starts from the reverse direction.

Change-Id: Ic16894e89aafb0d4fced2e03201e3875d7f1510a
Closes-bug: #1336722
return router:external as part of network dictionary

Change-Id: I0368d3da26a2c14772b33f29598550401e0bed6c
Add basic tests for adding protobuf receiver in collector using
self describing messages.

Change-Id: Ifb5f95fa8505fc859688cc5b9db8f32e2b33b6e2
Increment BgpPeer flap count after setting state to IDLE.

Incrementing the flap count prior to udpating the state sometimes
causes issues for tests that first wait for the flap count to go
up and then wait for the state to reach ESTABLISHED again.  They
may see the updated flap count and old state and hence eventually
fail.

This problem was observed when feeding many CLEAR_BGP_PEER events
to a peer via the bgp_stress_test.

Change-Id: If1a7189d7b0be734a247457869aecb547e0adca1
Fix for bug 1342397 commiting on behalf of Sanju Abraham.

Change-Id: Ifa8eaf47866ecb653edcc99e91a3e272e80d7d43
Modifying ruleeng to use the generic stats parser - StatWalker

Change-Id: Ib53c044193ffddf2f2cc3fa9ea01010de3315116
Send sequence number for all kind of route data built at controller xmpp receive
message.
Added controller Vlan rt, controller inet interface rt, controller local vm
route under sequence number validity.
Bug# https://bugs.launchpad.net/juniperopenstack/+bug/1336140
Change-Id: I1382ae6ee90b7fcabd050fee5600ac719e73c140
Fix to not use the pointer which is released. Decommission peer list contains shared pointer.
This in turn releases the memory as it is the last reference. So dont use the pointer from same.
Take the required data before releasing.
Bug# https://bugs.launchpad.net/juniperopenstack/+bug/1328843
Change-Id: I481e0496094d5b2571aa5b3855a373ae3fa05062
Add loadbalancer to generated schema

Change-Id: I7a350db8ab81275e7a119525b0c330229888884f
VRouter NetNS script fix

- Set a display name on veth
- Use a default ID as rt table in the netns
- Correct the scons script to support dependance on the vrouter API
  library and run unit tests

Change-Id: If7e42147849dade6fd6f6aa56a1bc6a829441d53
Signed-off-by: Édouard Thuleau <edouard.thuleau@cloudwatt.com>
Merge "Defer delete of peer till its reference is removed from RTGroupManager"
Merge "IP allocation starts from reverse"
Ensure that the rtarget route path delete for a xmpp agent is done only when there are not VRF importing this rtarget. This is done by maintaining a map with key as route target and values as Set of routing instance importing this route target.

Change-Id: I3a4c61c87cbec7285f41b5c4d8544ac4c0b069fc