Re: [opencontrail-dev] Problem creating a new data structure with Sandesh

2015-04-14 Thread Megh Bhatt
Hi Alberto, You can take a look at https://github.com/Juniper/contrail-controller/blob/master/src/vnsw/agent/uve/mock_generator.cc which is an example generator that sends some UVEs and flow messages. It has bunch of command line options. It can be compiled by running scons vrouter:mock_gen

Re: [opencontrail-dev] Problem creating a new data structure with Sandesh

2015-04-13 Thread Megh Bhatt
Hi Alberto, Please see inline … On Apr 13, 2015, at 2:03 PM, aguti...@ac.upc.edu aguti...@ac.upc.edu wrote: Hi Megh, Thank you for the reply. I already went thru client_sm module but didn't get any clue about when does the state change, thanks. You are correct, TASK_UTIL_EXPECT_TRUE is

Re: [opencontrail-dev] Problem creating a new data structure with Sandesh

2015-04-13 Thread Megh Bhatt
Hi Alberto, Sorry for the delay. Please see inline … On Apr 13, 2015, at 3:14 AM, aguti...@ac.upc.edu aguti...@ac.upc.edu wrote: Hi, I got the following code modifying the test suite available in the Sandesh C++ library folder: int port = 8086; ASSERT_LT(0, port); std::cout

Re: [opencontrail-dev] Problem creating a new data structure with Sandesh

2015-04-13 Thread agutierr
Hi Megh, Thank you for the reply. I already went thru client_sm module but didn't get any clue about when does the state change, thanks. You are correct, TASK_UTIL_EXPECT_TRUE is just a conditional print. I tried to make a loop with that condition (negated) but it seems to stay forever

[opencontrail-dev] Problem creating a new data structure with Sandesh

2015-04-08 Thread agutierr
Dear all, I'm trying to create a new message to send with Sandesh protocol, however I don't know how to compile the generated code. We intend to use this messaging for testing purposes (at the moment) by means of an extra application which will send Sandesh messages each second. I have