Hi,Clément

On 2014年12月01日 20:35, Clément Rault wrote:
> Hi,
> 
> I'm trying to implement some inband mechanisms and for that I need to
> keep some information about the states of the nodes. Since nothing can
> be stored in the nodes I need to save it in the packet header.
> 
> Basically I just wanna be able to remember which was the last outport
> used by any switch. And then match on this parameter to decide which
> outport should be used then.
> 
> I was thinking about using the vlan tag to do that but since I'm using
> the curl syntax and it's not possible to match on vlan with masks yet
> it's not the best option. (I need the mask to match on the particular
> bits that are important for the state of the current switch).

The following patch I posted last week, and the patches are marged by Ryu-devel.
https://www.mail-archive.com/[email protected]/msg07966.html

This patch makes ofctl_rest enable set vlan match field with mask.

e.g.)

  curl -X POST -d '{"dpid": 2, 
                    "match":{"dl_vlan": "0x1000/0x1000"},
                    "actions":[{"port":2, "type":"OUTPUT"}]}' 
                    http://localhost:8080/stats/flowentry/add

So you can receive it on next Ryu release (version 3.16 maybe) in early this 
month.

Thanks

> 
> What do you think? How would you do it?
> 
> Thanks!
> 
> Best,
> Clément
> 
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
> 

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to