Derive ip family from prefix while provisioning static routes

Change-Id: I95a9bb9f5a4200ce60e26ac0300f893d474ada0c
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
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
The dependent route list maintained by path_preference_module for a given V4 IP/prefix_len should have only V4 routes. The agent crash as reported by bug 1382378 happened because we were expecting only v4 routes in the dependent list and the list had v6 routes as well.
Added UT to ensure that dependent list has only v4 routes.
Closes-Bug: #1382378

Change-Id: I03a26fe06aa82e02821973989680e6e1ddd524e0
Making file names consistent.
There are following sets of changes:
1. Changing module (id) names to be consistent with service name changes.
2. Making svc-monitor and schema-transformer file names consistent
3. Make contrail-database file names consistent with over contrail file
naming convention.
4. Deletes unnecessary files

This commit requires changes in contrail-controller, contrail-packaging,
contrail-packages, contrail-provisioning, contrail-puppet and
contrail-test repos.

Update aftre rebase

Change-Id: If79620e04d772fcc20c61961189b2efc57fac38d
Closes-PR: 1365845
Closes-PR: 1355712
Merge "Derive ip family from prefix while provisioning static routes"
Merge "The dependent route list maintained by path_preference_module for a given V4 IP/prefix_len should have only V4 routes. The agent crash as reported by bug 1382378 happened because we were expecting only v4 routes in the dependent list and the list had v6 routes as well. Added UT to ensure that dependent list has only v4 routes. Closes-Bug: #1382378"
Merge "Cleanup and refactor code in service_chain_test.cc"
Merge "Fix circular route re-origination bug with transit VN"
Use IANA codepoints for Tunnel Encapsulation types

Highlights:

- No changes to vRouter agent code
- Changes are backward compatible with older vRouter agents and CNs
- Xmpp encapsulation string for udp translated to 2 communities
- Xmpp encapsulation string for vxlan translated to 2 communities
- IANA and pre-standard communites for udp translated to 1 xmpp string
- IANA and pre-standard communites for vxlan translated to 1 xmpp string

Change-Id: I5d64282f81409a0805c2f5d97818b5a7649636bd
Closes-Bug: 1373559