[openflow-discuss] How do you handle error messages? As Sync or Async ?

2011-05-20 Thread G A
Hi all What is the expected/standard way to handle error messages to flow_mod requests? If they are treated as SYNC messages, then my application would have to wait for an ack. But if the switch has happily accepted the flow_mod, it does not send back anything - causing my app to hang forever.

Re: [openflow-discuss] How do you handle error messages? As Sync or Async ?

2011-05-20 Thread kk yap
Hi, The choice is yours. To do a synchronous call, send the flow_mod followed up a barrier_request. You will get the barrier_reply back. To do asynchronous calls, just send the flow_mod and wait for error messages. The error messages should carry the same xid (transaction id) as the flow_mod