The error message is an OVS extended error, type 1, code 0x100.  I guess the 
code which parses these hasn't been pushed.  It's a pretty generic error 
message.

If nothing else, it's caused by misuse of nx_flow_mod.  nx_flow_mod doesn't use 
an ofp_match object.  It uses an nx_match object, which is very different and 
is pretty much the entire point of nx_flow_mod.

If I remember right, switching roles is just a matter of creating the role 
selection command and sending it.

-- Murphy

On Sep 20, 2013, at 2:38 AM, Windhya Rankothge <[email protected]> wrote:

> Hi Murphy,
> 
> Thanks alot for the reply.. This is the first time I am using Nicira 
> extension, so I started it with simple flow modification msg..
> 
> POX> ./pox.py py openflow.nicira
> POX> import pox.openflow.libopenflow_01 as of
> POX> import pox.openflow.nicira as nx
> 
> POX> for connection in core.openflow.connections:
> POX>     connection.send(nx.nx_flow_mod(action=of.ofp_action_output(port=1 
> ),priority=32,match=of.ofp_match(dl_type=0x800,nw_src="10.0.0.2",nw_dst="10.0.0.1")))
> POX>     connection.send(nx.nx_flow_mod(action=of.ofp_action_output(port=2 
> ),priority=32,match=of.ofp_match(dl_type=0x800,nw_src="10.0.0.1",nw_dst="10.0.0.2")))
> 
> 
> Then I get this error
> 
> POX> ERROR:openflow.of_01:[00-00-00-00-00-01 3] OpenFlow Error:
> [00-00-00-00-00-01 3] Error: header: 
> [00-00-00-00-00-01 3] Error:   version: 1
> [00-00-00-00-00-01 3] Error:   type:    1 (OFPT_ERROR)
> [00-00-00-00-00-01 3] Error:   length:  84
> [00-00-00-00-00-01 3] Error:   xid:     12
> [00-00-00-00-00-01 3] Error: type: 45250
> [00-00-00-00-00-01 3] Error: code: 0
> [00-00-00-00-00-01 3] Error: datalen: 72
> [00-00-00-00-00-01 3] Error: 0000: 00 00 23 20 00 01 01 00  01 04 00 60 00 00 
> 00 0c   |..# .......`....|
> [00-00-00-00-00-01 3] Error: 0010: 00 00 23 20 00 00 00 0d  00 00 00 00 00 00 
> 00 00   |..# ............|
> [00-00-00-00-00-01 3] Error: 0020: 00 00 00 00 00 00 00 20  ff ff ff ff ff ff 
> 00 00   |....... ........|
> [00-00-00-00-00-01 3] Error: 0030: 00 28 00 00 00 00 00 00  00 30 00 ef 00 00 
> 00 00   |.(.......0......|
> [00-00-00-00-00-01 3] Error: 0040: 00 00 00 00 00 00 00 00                    
>         |........        |
> 
> 
> On Thu, Sep 19, 2013 at 10:51 PM, Murphy McCauley <[email protected]> 
> wrote:
> I think Eder has it all right.
> 
> The message in question is nx_role_request, and it is available in the POX 
> carp branch.
> 
> Using Nicira / OVS extensions in POX is currently not documented very well, 
> but there is an entry for it in the manual and a component or two which use 
> them (e.g., forwarding.l2_nx).  Best bet at the moment is reading OVS 
> documentation, the OVS source files (especially nicira-ext.h, which you can 
> find on Google easily), and pox.openflow.nicira (where all the POX code for 
> it lives).
> 
> Luckily, nx_role_request should be pretty easy to use.
> 
> -- Murphy
> 
> On Sep 19, 2013, at 1:13 PM, Windhya Rankothge <[email protected]> wrote:
> 
>> Thanks alot for the information.. I will look into Nicira extension..
>> 
>> 
>> On Thu, Sep 19, 2013 at 9:52 PM, Eder Leão Fernandes 
>> <[email protected]> wrote:
>> Hi, 
>> 
>> POX does not support OpenFlow version beyond 1.0. I think it has the Nicira 
>> extension that (I believe), originated the feature on the newest 
>> specifications. It should work on switches that support Nicira extensions, 
>> most notably Open vSwitch.
>> 
>> Regards,
>> Eder.
>> 
>> 
>> On 19 September 2013 15:37, Windhya Rankothge <[email protected]> wrote:
>> Hi all,
>> 
>> I want to know whether POX supports Role Request Messages specifications 
>> given in openflow 1.4.0.. 
>> Please let me know where I can find the information..
>> 
>> 
>> On Thu, Sep 19, 2013 at 10:59 AM, Windhya Rankothge <[email protected]> 
>> wrote:
>> Hi all,
>> 
>> In the openflow specifications I saw that we can connect multiple 
>> controlelrs to a openflow switch and configure one controlelr as the master 
>> controller and others as slave controllers..
>> 
>> And I read that controller has to send a role change request to do this..
>> 
>> But I was not able to find any example on how to do this..
>> 
>> Highly appreciate any help on this..
>> 
>> 
>> Best Regards,
>>  
>> Windhya Rankothge....
>> 
>> 
>> 
>> -- 
>> Best Regards,
>>  
>> Windhya Rankothge..... (WINDY)
>> 
>> _______________________________________________
>> openflow-discuss mailing list
>> [email protected]
>> https://mailman.stanford.edu/mailman/listinfo/openflow-discuss
>> 
>> 
>> 
>> 
>> -- 
>> Eder Leão Fernandes 
>> 
>> Bacharelado em Ciências de Computação
>> Instituto de Ciências Matemáticas e de Computação
>> Universidade de São Paulo
>> 
>> 
>> 
>> -- 
>> Best Regards,
>>  
>> Windhya Rankothge..... (WINDY)
> 
> 
> 
> 
> -- 
> Best Regards,
>  
> Windhya Rankothge..... (WINDY)

Reply via email to