Derive ip family from prefix while provisioning static routes

Change-Id: I95a9bb9f5a4200ce60e26ac0300f893d474ada0c
This bug adds the ModuleId from the Messages into the field
 names stats table, so that it can be queried to get a list
 of ModuleId's occuring in any time range.

Closes-Bug:#1360414

Change-Id: I8256ff794850bd321ad8fe543fa83b8356c5f21b
Schema change to link loadbalancer pool to VMI

Add a link from loadbalancer pool to virtual machine interface(VMI).
VMI is linked to a logical interface of a physical router where the
configuration is stored.

Change-Id: I1f708e12ad0bef87c33da34b189d1c86574c4b81
Closes-Bug: #1381775
If the API client updates a network object with subnets and does not send a subnet_uuid, we were allocating a new UUID. If the subnet already exists, we should reuse the subnet_uuid. Now, we read from cassandra before generating a new UUID.

Change-Id: I13426663c8a2a8e79fbf170dffb81c726506cee1
Closes-Bug: 1381779
(cherry picked from commit c2f71af5f2e9a6f31ce65e48c0e4a4c62e82f0c8)
bug 1381704 - update cassandra db with sequence when upgrading from earlier version

Change-Id: Ic39a4e1fc46c5259f3a5de69e778ac1352dc034d
Adding skeleton for a new daemon: prc-manager

The name stands for 'physical router configuration manager'.
It listens to rabbit-mq updates from API server. When messages are received, it reads corresponding information from cassandra. It manages configuration for physical routers (MX only for now) using netconf utility.

Change-Id: I36ac5f8999f8f921f4ecec1bc87d4c7742ed88df
Catch PermissionDenied exception on security_group_update so that we can return proper error when sg rule quota is exceeded.

Change-Id: I1ebfe45a50521653ec92f115e12b692cc554dec4
Closes-Bug: 1365463
Fix circular route re-origination bug with transit VN

Problem:

When a service is applied between a VN and a transit VN, routes from the
VN that are re-originated into the transit VN as ServiceChain routes get
re-originated again as ServiceChain routes into the regular VN.

Cause:

Implementation prior to transit VN used to ignore routes that did belong
to the destination VN of the service chain.  Code changes for transit VN
functionality relaxed this check, but did not cover the case where route
belongs to the source VN.

Fix:

Add check to ignore routes from source VN.

Change-Id: Ifdff8e828f0d4a9bc20ab055e0e9206d2cfd347a
Partial-Bug: 1365277
Add vrouter-instance ServiceInstanceType

Change-Id: Iab21f83743e100cd89471ee03ccba6110abbe551
Cleanup and refactor code in service_chain_test.cc

Following changes have been implemented:

- Use using instead of using namespace
- Add and use helper methods for creating peers and configuring chains
- Add and use helper methods for verfification of routes and paths
- Consolidate use of task_util::WaitForIdle to a few helper methods

Change-Id: I33ccdb0b988fec768bb5c44b1de5d5c91fdd8bb3
Merge "bug 1381704 - update cassandra db with sequence when upgrading from earlier version"
Schema changes for VCPE feature.
-Define an object to represent subnet
-Define a link from this subnet object to virtual-machine-interface object

Change-Id: I2fdc56d4be68bec32f3b2f45ba735e9efea1f733
Bug:#1380771 Adding the load balancer session persistence parameters fro Service Instance's Virtual ip. The session persistense type and name are written to haproxy configuration file in the backend section

Change-Id: I44a2b5c750f2ab62221d5bd43925df3de2dc85cd
Merge "If the API client updates a network object with subnets and does not send a subnet_uuid, we were allocating a new UUID. If the subnet already exists, we should reuse the subnet_uuid. Now, we read from cassandra before generating a new UUID."
Merge "Catch PermissionDenied exception on security_group_update so that we can return proper error when sg rule quota is exceeded."
Export underlay source port as 0 when encapsulation type is MPLSoGRE.

In vrouter underlay source port calculation is done for each flow record irrespective of its encap type. Agent instead of exporting this value (given by vrouter) as-is, should send the value as 0 when encap type is MPLSoGRE

Add unit test case to verify this.

Change-Id: I2c582d83ba2dafdf65b351a374c8f87d4517464e
Closes-Bug: #1382355
Merge "Bug:#1380771 Adding the load balancer session persistence parameters fro Service Instance's Virtual ip. The session persistense type and name are written to haproxy configuration file in the backend section"
Merge "Export underlay source port as 0 when encapsulation type is MPLSoGRE."
Merge "Adding skeleton for a new daemon: prc-manager"
Merge "Schema changes for VCPE feature. -Define an object to represent subnet -Define a link from this subnet object to virtual-machine-interface object"