Re: [Ryu-devel] How to install forwarding rules with the specific switch ID

2018-07-16 Thread knet solutions
As far my knowledge , no direct api. But you can doi via programming. Keep the datapath object globally in your app(build the knowledge at switchfeature request handler) .Query with dpid and get the object and use it. Another approach is refer rest example. In that different approach is mentioned.

Re: [Ryu-devel] How to install forwarding rules with the specific switch ID

2018-07-16 Thread Soe Ye Htet
Dear RYU team, >From EventOFPSwitchFeature, RYU controller will know the datapath ID of each OpenFlow switch. @set_ev_cls(ofp_event.EventOFPSwitchFeatures, CONFIG_DISPATCHER) From the defined function of add_flow to add openflow rules to each swtich def add_flow(self, datapath, priority, match, ac

Re: [Ryu-devel] How to install forwarding rules with the specific switch ID

2018-07-16 Thread IWAMOTO Toshihiro
On Sat, 14 Jul 2018 18:19:20 +0900, Soe Ye Htet wrote: > > [1 ] > Dear RYU team, > > I have seen then the way of installing the forwarding rules in REST API. In > the REST API, we need to put the datapath ID to install the forwarding > rules. Can I install the flow rules with the datapath ID in

Re: [Ryu-devel] How to install forwarding rules with the specific switch ID

2018-07-14 Thread Carlos Ferreira
I see! Interesting scenario. I usually only contemplate the controller being controlling OpenFlow switches and that's it. The hosts don't even know that the controller is there in the first place. Thank you for the extra info! My regards, Carlos Ferreira On 14 July 2018 at 14:47, Soe Ye Htet wr

Re: [Ryu-devel] How to install forwarding rules with the specific switch ID

2018-07-14 Thread Soe Ye Htet
Dear Carlos Ferreira, Currently, my set up is based on a proactive approach. RYU controller will assign the forwarding rules proactively to the openflow switch. Let me recall back my simple topology. GW1--host1-host2-GW2. RYU controller is in the GW1. host1 & host2 sends the data to th

Re: [Ryu-devel] How to install forwarding rules with the specific switch ID

2018-07-14 Thread Carlos Ferreira
Dear Soe Ye Htet, I have a question. According to your setup, isn't the controller behaving like a router? Won't the switch be sending the traffic to the controller, which then routes it to through the intended path? My regards, Carlos Ferreira On 14 July 2018 at 10:19, Soe Ye Htet wrote: > De

Re: [Ryu-devel] How to install forwarding rules with the specific switch ID

2018-07-14 Thread Soe Ye Htet
Dear RYU team, I have seen then the way of installing the forwarding rules in REST API. In the REST API, we need to put the datapath ID to install the forwarding rules. Can I install the flow rules with the datapath ID in Packet-In-Event handler. Best regards, Soe Ye Htet On Sat, Jul 14, 2018 at

Re: [Ryu-devel] How to install forwarding rules with the specific switch ID

2018-07-14 Thread Soe Ye Htet
Dear RYU team, I have only one RYU controller. Actually what I want to do is rerouting for load balancing between the gateway. Best Regards, Soe Ye Htet On Thu, Jul 12, 2018 at 11:14 AM, IWAMOTO Toshihiro wrote: > On Sun, 08 Jul 2018 01:21:55 +0900, > Soe Ye Htet wrote: > > > > [1 ] > > [1.1

Re: [Ryu-devel] How to install forwarding rules with the specific switch ID

2018-07-11 Thread IWAMOTO Toshihiro
On Sun, 08 Jul 2018 01:21:55 +0900, Soe Ye Htet wrote: > > [1 ] > [1.1 ] > Dear, > > I would like to install the forwarding rules from the RYU controller with > the specific switch ID based on the packet-in message. For eg. > gateway1host1---host2---host3-gateway2. host1,hos