Are you running the openflow.nicira component as well as your own component?  
You should be.

-- Murphy

On Oct 28, 2013, at 8:21 AM, Amer <[email protected]> wrote:

> Hello,
> I am working in mininet v2.0
> OVS v 1.10
> after that i am facing this message
> 
> INFO:openflow.of_01:Vendor msg: ofp_vendor_generic
>   header:
>     version: 1
>     type:    4 (OFPT_VENDOR)
>     length:  92
>     xid:     0
>   vendor: 8992
>   datalen: 80
>  
> however, I have copied the _handle_ConnectionUp from l2_nx, but i do not what 
> i should keep and what i should remove, By the way I am using the match metho 
> that you gave me in previou email which is not the same of the one that used 
> in l2_nx.
>  
>  
>  
> def _handle_ConnectionUp (event):
>   # Turn on Nicira packet_ins
>   msg = nx.nx_packet_in_format()
>   event.connection.send(msg)
> 
>   # Turn on ability to specify table in flow_mods
>   msg = nx.nx_flow_mod_table_id()
>   event.connection.send(msg)
> 
>   # Clear second table
>   msg = nx.nx_flow_mod(command=of.OFPFC_DELETE, table_id = 1)
>   event.connection.send(msg)
>  
>   msg = nx.nx_flow_mod()
>   msg.priority = 1 # Low priority
>   msg.actions.append(of.ofp_action_output(port = of.OFPP_CONTROLLER))
>   msg.actions.append(nx.nx_action_resubmit.resubmit_table(table = 1))
>   event.connection.send(msg)
>  
>   msg = nx.nx_flow_mod()
>   msg.table_id = 1
>   msg.priority = 1 # Low priority
>   msg.actions.append(of.ofp_action_output(port = of.OFPP_FLOOD))
>   event.connection.send(msg)
>   def ready (event):
>     if event.ofp.xid != 0x80000000:
>       return
>     event.connection.addListenerByName("PacketIn", _handle_PacketIn)
>     return EventRemove
>   event.connection.send(of.ofp_barrier_request(xid=0x80000000))
>   event.connection.addListenerByName("BarrierIn", ready)
>  
> Thank You
> Best regards,
> 
> Eng Amer Alghadhban
> COE
> SANS-GCFW
> CEH, SCNP, CCNA
> 
>  
> Subject: Re: [pox-dev] error with nicira
> From: [email protected]
> Date: Sun, 27 Oct 2013 12:39:00 -0700
> CC: [email protected]
> To: [email protected]
> 
> Have you followed steps from the final entry of the FAQ in the POX manual?
> 
> http://www.noxrepo.org/pox/manual
> 
> -- Murphy
> 
> On Oct 27, 2013, at 12:26 PM, Amer <[email protected]> wrote:
> 
> Hello,
> 
> I have copied the handle_connectionup function from l2_nx, but I do not know 
> whether the table statements are mandatory and useful for someone who use a 
> regular nx-match statements like what you have sent me. Also, I do not know 
> why arbitrary netmask did not work with me even with nicira.
> I apologize I found a flood statement handled my communication when I removed 
> it, nothing was sent :( !!
> 
> Best regards,
> Amer
> 
> Sent from my iPhone
> 
> On ٢٧‏/١٠‏/٢٠١٣, at ١:٣٩ م, AMER <[email protected]> wrote:
> 
> Hello,
>  
> I am facing this error, it works fine even with this error but I hope to sort 
> it out
> 
> INFO:openflow.of_01:[00-00-00-00-00-04 13] connected
> ERROR:openflow.of_01:[00-00-00-00-00-04 13] OpenFlow Error:
> [00-00-00-00-00-04 13] Error: header:
> [00-00-00-00-00-04 13] Error:   version: 1
> [00-00-00-00-00-04 13] Error:   type:    1 (OFPT_ERROR)
> [00-00-00-00-00-04 13] Error:   length:  32
> [00-00-00-00-00-04 13] Error:   xid:     128
> [00-00-00-00-00-04 13] Error: type: OFPET_BAD_REQUEST (1)
> [00-00-00-00-00-04 13] Error: code: OFPBRC_BAD_SUBTYPE (4)
> [00-00-00-00-00-04 13] Error: datalen: 20
> [00-00-00-00-00-04 13] Error: 0000: 01 04 00 14 00 00 00 80  00 00 23 20 00 
> 00 00 10   |..........# ....|
> [00-00-00-00-00-04 13] Error: 0010: 00 00 00 01 
> 
> I copied the following functions from l2_nx to use nicira extention
> Connection_UP
> Ready
> launch
>  
> Best regards,
> Eng Amer Alghadhban
> COE
> SANS-GCFW
> CEH, SCNP, CCNA
> 
>  
> From: [email protected]
> Subject: Re: match in Nicira
> Date: Sat, 26 Oct 2013 21:16:00 -0700
> To: [email protected]
> 
> Glad to hear it.
> 
> -- Murphy
> 
> On Oct 26, 2013, at 4:19 PM, AMER <[email protected]> wrote:
> 
> Dear Murphy
>  
> I tried it, it works fine and even with arbitrary Netmask that I asked you 
> before it works fine with nx extention
>  
> I appreciate your time and efforts
> Thank you
> 
> Eng Amer Alghadhban
> COE
> SANS-GCFW
> CEH, SCNP, CCNA
> 
>  
> Subject: Re: match in Nicira
> From: [email protected]
> Date: Sat, 26 Oct 2013 11:09:27 -0700
> CC: [email protected]
> To: [email protected]
> 
> I think what you want is something like the following:
> 
> msg1 = nx.nx_flow_mod()
> msg1.idle_timeout = 100
> msg1.hard_timeout = 120
> msg1.match.eth_type = packet.IP_TYPE
> msg1.match.eth_src = packet.src
> msg1.match.eth_dst = packet.dst
> msg1.match.ip_dst = IPAddr("10.1.0.1")
> msg1.priority = 65001
> 
> There are actually several ways to do this; the above is just one of them.  
> It helps to understand the Nicira match extension, which is described some in 
> the documentation and examples for Open vSwitch.  It also may help to read 
> pox/openflow/nicira.py; especially the docs for nx_match.
> 
> -- Murphy
> 
> On Oct 25, 2013, at 6:33 PM, AMER <[email protected]> wrote:
> 
> Hello
> I would like to do the following command in nx nicirat extention:
>     
>    packet = event.parsed
>     msg1 = of.ofp_flow_mod()
>     msg1.idle_timeout = 100
>     msg1.hard_timeout = 120
>     msg1.match.dl_type = packet.IP_TYPE
>    msg.match.dl_src = packet.src
>   msg.match.dl_dst = packet.dst 
>   msg1.match.nw_dst =IPAddr("10.1.0.1")
>     msg1.match.priority = 65001
>     msg1.match.nw_src = None
>  
> I have gone through l2_nx but i did not find much info even in OVS nicira and 
> openflow.nicira
> 
> 
> Thank you
> Best regards,
> Eng Amer Alghadhban
> COE
> SANS-GCFW
> CEH, SCNP, CCNA

Reply via email to