Hi Fujita,
Thank you so much for the response. That helped alot. One other small issue
is that Im trying to match on TCP source port for IPv6. The match
parameters I give is TCP source port = 2000+protocol=6(for
TCP)+ethertype=0x86DD(for IPv6). However the controller reports an error
when it tries programming the flow onto the switch. The controller programs
all other flows with matches like IPv6 source address and destination
address just fine but does not program this one. Am I doing something wrong
from the controller perspective or is there a known bug for this? I am
currently using Ryu version 3.2.
Regards,
Vinay Pai B.H.
On Mon, Feb 17, 2014 at 11:59 PM, FUJITA Tomonori <
[email protected]> wrote:
> On Mon, 17 Feb 2014 12:31:51 -0800
> vinay pai <[email protected]> wrote:
>
> > What I am trying to achieve is incrementally pass flow with the
> combination
> > of matches. For Example, I first pass a flow with match on ethertype,
> next
> > with match on ethertype and source MAC, then with match on ethertype,
> > source MAC and destination MAC, and so on. I have added this small snipet
> > of code below:
> >
> > while (count < 7):
> >
> > match = parser.OFPMatch(in_port=5097) ----> (creating here)
> >
> > if (count & 1):
> > #match = parser.OFPMatch(in_port=5097, vlan_vid=vlan)
> > match.vlan_vid=vlan -----> (modifying here)
> > print 'match on vlan = ',vlan
> >
> > if (count & 2):
> > #match = parser.OFPMatch(in_port=5097, eth_src=src)
> > match.eth_src=src
> > print 'match on Source MAC Address', src
> >
> > if (count & 4):
> > #match = parser.OFPMatch(in_port=5097, eth_dst=dst)
> > match.eth_dst=dst
> > print 'match on Destination MAC Address', dst
> >
> > actions = [parser.OFPActionOutput(out_port)]
> > print 'Flow to be added'
> > self.add_flow(datapath, 1000, match, actions, table_id)
> > time.sleep(2)
> > count+=1
> >
> > This code only pushes match on in_port=5097 and action as out_port. Is
> > there no way I can modify the match fields on the object once I have
> > created other than by passing as parameter to parser.OFPMatch()? It would
> > be great if you could point out a way of modifying the match object in
> the
> > code above. I am sorry if I am ignoring something very obvious.
>
> Instead of updating OFPMatch, how about something like the followings?
>
> while (count < 7):
> d = {'in_port': 5097}
>
> if (count & 1):
> d.update({'vlan_vid': vlan})
>
> if (count & 2):
> d.update({'eth_src': src})
>
> ....
>
> match = parser.OFPMatch(**d)
> self.add_flow(datapath, 1000, match, actions, table_id)
>
>
> ------------------------------------------------------------------------------
> Managing the Performance of Cloud-Based Applications
> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
> Read the Whitepaper.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
--
Vinay Pai B.H.
Grad Student - Computer Science
Viterbi School of Engineering
University of Southern California
Los Angeles, CA, USA
------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel