Use shared-pointer for paket buffers

Get length of packet to transmit from packet-buffer
Remove malloc/free for packet buffer from services/diag module

Change-Id: If005e21a1bbb8439e596fe161f58d365a575bb2f
Simplify rtarget default route handling

Don't attempt to register to all VPN tables when we receive a default
route. This avoids problems where duplicate/multiple registrations may
result in the membership manager getting stuck.

Implication is that all VPN routes added/updated after a default route
is received will be sent to the peer.  IOW, default route is effective
only if it's received before the End-Of-RIB marker is received.

Change-Id: I3b020340cf5ac403ff55847258abe91bd4558ef1
Explicitly check for None while checking for quota limit. Previous checks would treat None and 0 as same.

Change-Id: Ib48b8feee2bb702d76e7fe9a1de135475eb4d790
Closes-Bug: 1368644
Promote ifmap_exporter_test back to regular list

Change-Id: I37a982da1ebe7634eca54f6e51f177a83e647d6a
Re-enable evpn_prefix_test post evpn code merge

Change-Id: Idccad033593b38ded6d552876c818f734a46a776
No need to delete self._subnet_objs[vn_fq_name_str] since _create_subnet_objs will start with empty dict anyway. Deleting it can cause a race condition if multiple updates are received for the same network at the same time.

Change-Id: Ibef11ed139f0edcf3789c210ce23b4700e20f442
Closes-Bug: 1369797
Add code missed out in merge. Commit for refererence https://github.com/Juniper/contrail-dev-controller/commit/b240b65581d8e8906049f24b2538ac34472375ac

Change-Id: I71cbedc31acf63e025a47ac860c100c1beffc116
Merge "Use shared-pointer for paket buffers"
Moved agent_param code from cmn/ to init/ directory

Moved common CLI arguments into AgentParams class
Allow daemons to add additional arguments

Change-Id: Ia8ffb21aa45ced1c7ba307bc9ed5a608732020f1
Merge "Explicitly check for None while checking for quota limit. Previous checks would treat None and 0 as same."
Merge "Add code missed out in merge. Commit for refererence https://github.com/Juniper/contrail-dev-controller/commit/b240b65581d8e8906049f24b2538ac34472375ac"
Merge "No need to delete self._subnet_objs[vn_fq_name_str] since _create_subnet_objs will start with empty dict anyway. Deleting it can cause a race condition if multiple updates are received for the same network at the same time."
Merge "Re-enable evpn_prefix_test post evpn code merge"
Merge "Promote ifmap_exporter_test back to regular list"
Merge "Simplify rtarget default route handling"
Merge "Moved agent_param code from cmn/ to init/ directory"
Explicitly check for None to accept 0 as a valid value.

Change-Id: I672c6b05ee6346251628d49998faf7bd87d203e7
Closes-Bug: 1369812
Accept Enet route without IP address from agent

Agent can now advertise a MAC without IP for L2-only VNs.
Or it can set the IP to 0.0.0.0/32.
Control Node advertises with IP as 0.0.0.0/32.
Control Node builds XMPP id using 0.0.0.0/32.

Change-Id: I3e52337e1722da679023fef5fafd2f816cb33509
Partial-Bug: #1366409
Add a user_visible property to resources

This patch add a user_visible to resources
in order to hide some technical resources
from the user point of view. For example
for the SNAT we can to hide technical
resources like a network and a port.

Resources with the property user_visible
set to false will be not count in quotas.

Change-Id: I77326dca9ec9de1f8b2824c2daa31b03a181812b
Delete stale routing instance and acl objects when schema transformer starts. This could happen if any virtual networks were deleted while schema transformer was down.

Change-Id: Ie29434adfb031500d5174ff0984a87ece7d59f0d
Closes-Bug: 1336637