Also,  in my actions the OFPAT_OUTPUT should not say inport there. That is a
typo.

On Sat, Aug 13, 2011 at 5:07 PM, Aaron Rosen <aro...@clemson.edu> wrote:

> Hi Hasham,
>
> The following should work.
>
> flow = {}
> flow[core.DL_TYPE] = ethernet.IP_TYPE
> flow[core.NW_SRC] = packet.next.dstip
> flow[core.NW_DST] = packet.next.srcip
> #flow[core.NW_PROTO] = packet.next.protocol (I'm not sure if this is needed
> but I also have this set if I want to  match tp_src/tp_dst ports)
> flow[core.TP_SRC] = packet.next.next.dstport
> flow[core.TP_DST] = packet.next.next.srcport
> flow[core.IN_PORT] = inport
>
> actions = [
>    [openflow.OFPAT_OUTPUT, [0, inport]]
> ]
>
> inst.install_datapath_flow(dpid, flow, CACHE_TIMEOUT,
>    openflow.OFP_FLOW_PERMANENT, actions,
>    None, openflow.OFP_DEFAULT_PRIORITY,
>    None, None);
>
> On Sat, Aug 13, 2011 at 5:01 PM, Hasham Asghar 
> <08bithasg...@seecs.edu.pk>wrote:
>
>>   I want to wildcard all fields except following:
>>
>> 1. dl_type
>> 2. nw_src
>> 3. nw_dst
>> 4. tp_src
>> 5. tp_dst
>>
>> i have tried a lot of options but nothing work for me.
>> Could you please give me the exact syntax for doing this.
>>
>>
>> Hasham Asghar
>> XFlow Research
>>
>>
>> _______________________________________________
>> nox-dev mailing list
>> nox-dev@noxrepo.org
>> http://noxrepo.org/mailman/listinfo/nox-dev
>>
>>
>
>
> --
> Aaron O. Rosen
> Masters Student - Network Communication
> 306B Fluor Daniel
>
>
>


-- 
Aaron O. Rosen
Masters Student - Network Communication
306B Fluor Daniel
_______________________________________________
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev

Reply via email to