add Peer::disconnect() API

Change-Id: Ia91c515589b2dca97ebf169db8cac513c08e8bff
Signed-off-by: Alessandro Salvatori <sandr8@gmail.com>
invoke error callback on last failed connection attempt

Change-Id: Ica9b1376406ba000cacb2afe9af210fe7f6e6554
Signed-off-by: Alessandro Salvatori <sandr8@gmail.com>
log everything in comms tests

Change-Id: Ic86c66f17527d756a0652042dd2c3bb47c113f62
Signed-off-by: Alessandro Salvatori <sandr8@gmail.com>
add 10 more comms tests

add the following 10 more tests to the asynchronous sockets test suite:
 o "test_destroy_listener_early"
 o "test_destroy_listener_late"
 o "test_destroy_client_early"
 o "test_destroy_client_late"
 o "test_destroy_client_before_connect"
 o "test_disconnect_client_before_connect"
 o "test_destroy_client_after_connect"
 o "test_disconnect_client_after_connect"
 o "test_destroy_server_after_connect"
 o "test_disconnect_server_after_connect"

Change-Id: I860d945980bf6a3b2bca80d1194bbd1624fc277e
Signed-off-by: Alessandro Salvatori <sandr8@gmail.com>
cleanup includes (local << utilities << dependencies << boost << STL << CRT)

Change-Id: Id4a2edc878c4a021a8c9146c0489c8658fbd9c4d
Signed-off-by: Alessandro Salvatori <sandr8@gmail.com>
Fix build breakage introduced by 951cf43ce

Change-Id: I3c935d3caa7ec768f3a8c27a19a8b144f11ee312
Signed-off-by: Rob Adams <readams@readams.net>
Fix a few bugs in flow modifications

- Distinguish between dangling references to contracts and
deleted contracts in PolicyManager
- Set the return value correctly in FlowExecutor
- Don't add policy-table flows if there are no classifiers

Change-Id: I5506885b36fb5dd2515aa4b6824cd88cea54ca98
Signed-off-by: Amit Bose <bose@noironetworks.com>
Add observers to the model, along with an EpStats observer in the gbpe
namespace for stitched-mode renderer stats.

Change-Id: I0f01e7be8a61b34f57a9d0fab558ae70595bd58d
Signed-off-by: Rob Adams <readams@readams.net>
Add support for reporting port statistics through OpFlex.
    * Use boost::asio to allow async timers
    * Add reverse port maps to port mapper
    * Allow looking up endpoints by port name
    * Create new StatsManager to periodically query switch port stats
      from OVS.
    * Report switch endpoint stats from endpoint manager

Change-Id: I19c1437912828bda7f655635e942cb5c4a80b5f6
Signed-off-by: Rob Adams <readams@readams.net>
add API to get remote address from a communication peer

Change-Id: I7624126f5d635483970007bd8e9d37574aa6f1e3
Signed-off-by: Alessandro Salvatori <sandr8@gmail.com>
Fix C++ type in generated code for signed ints

Change-Id: I13f8ef76fdb920186354c46fb81dfb50d89de2d0
Signed-off-by: Tom Flynn <tom.flynn@gmail.com>
Change MOSerializer to use "uri" rather than "name" where needed
according to lastest OpFlex draft.

Change-Id: Ie7f6adecc11b7324464f65ac2993cb3e417dbb71
Signed-off-by: Rob Adams <readams@readams.net>
Install group-table entries for flood-domains

FlowManager now keeps track of flood-domain membership
and updates the group-table accordingly.
Also, FlowManager now uses the tunnel endpoint information
from the config file.

Change-Id: I5070b29c33b36e48f2cb8c2a538dc5b072209bea
Signed-off-by: Amit Bose <bose@noironetworks.com>
Implement tunnel endpoint declaration.
  * Rearrange model to implement tunnel endpoints and allow other
    non-network endpoints
  * Fix some issues with model ownership and object types
  * Implement tunnelepmanager that can discover local IP address and
    write the appropriate object to the MODB.

Change-Id: I8c267e6d7c9aa9e9392993563527696f2fb382d4
Signed-off-by: Rob Adams <readams@readams.net>
Avoid spinning in the connection monitor thread

Apparently the vconn_*_wait functions actually don't block till
an interesting event occurs, but rather "arrange the poll loop
to wake up". The caller needs to invoke poll_block() to block for
those events. Without this, the connection monitor thread was
simply spinning.
Also, made a few minor changes to the connection-test code.

Change-Id: Icccb1be9bd1731bfb5aaac5e1abc602add3dec80
Signed-off-by: Amit Bose <bose@noironetworks.com>
Some fixes to allow building on 32-bit and with dependencies in weird
places.

Change-Id: I06b89fde2623617ed108455f5900aa39eb7e1d89
Signed-off-by: Rob Adams <readams@readams.net>
fixlet for wrong order of parameters in uninstantiated template

Change-Id: I73408ae96569742e025d9b566b78fa3a1e8f6fe6
Signed-off-by: Alessandro Salvatori <sandr8@gmail.com>
declare getPeerName as const

Change-Id: If245af467fe5fb14f5df5d0b333dbfd6e4e18ada
Signed-off-by: Alessandro Salvatori <sandr8@gmail.com>
don't include flaky tests in make check

Change-Id: I5483be7f6cb2f2c831c9c1119f5d241e8e217ff6
Signed-off-by: Alessandro Salvatori <sandr8@gmail.com>
timeout comms tests in case they get stuck

Change-Id: I7f42cd9156723f3c4774dc703b9324140976b784
Signed-off-by: Alessandro Salvatori <sandr8@gmail.com>