[ovs-discuss] Failed to add group action
Hi all, I have a network with topology h1--s1==s2--h2. Where "==" means there are two links between s1 and s2. I want to use group action for multi-path routing between h1 and h2. I experimented on a physical network, where s1 and s2 are Ubuntu16.04 with Openvswitch 2.5.2. (1) In s1, I added "eth1", "eth2", "eth3" to ovs bridge "br0". root@ubuntu:~# ovs-vsctl show adf8538d-c23e-442d-a557-469eed7c81da Bridge "br0" Port "eth3" Interface "eth3" Port "eth2" Interface "eth2" Port "eth1" Interface "eth1" Port "br0" Interface "br0" type: internal ovs_version: "2.5.2" (2) Then, I add a group: ovs-ofctl -O OpenFlow13 add-group br0 group_id=5566,type=select,bucket=output:1,bucket=output:2 root@ubuntu:~# ovs-ofctl -O OpenFlow13 dump-groups br0OFPST_GROUP_DESC reply (OF1.3) (xid=0x2): group_id=5566,type=select,bucket=actions=output:1,bucket=actions=output:2 (3) Then, I add a flow to choose group action for traffic from inport 3. ovs-ofctl -O OpenFlow13 add-flow br0 in_port=3,actions=group:5566 root@ubuntu:~# ovs-ofctl dump-flows br0 NXST_FLOW reply (xid=0x4): cookie=0x0, duration=885.986s, table=0, n_packets=0, n_bytes=0, idle_age=885, in_port=3 actions=drop cookie=0x0, duration=980.431s, table=0, n_packets=0, n_bytes=0, idle_age=980, priority=0 actions=NORMAL But the action is not group, but drop instead. I tried the same commands in mininet and everything is fine. I wonder what's might cause this problem? Thanks, Yuanjun ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
Re: [ovs-discuss] How to notify the SDN controller when adding a new interface to OVS bridge?
Thank you, Ben. I found stplib in ryu.lib that will handle port state changes. And there is a such handler in simple_switch_stp.py. On Fri, Apr 7, 2017 at 4:13 PM, Ben Pfaff wrote: > On Fri, Apr 07, 2017 at 04:05:06PM -0400, Yuanjun Yao wrote: > > I want to dynamically add new interface to OVS bridge, but it seems that > > the SDN controller knows the interfaces and mac addresses only when we > > first set controller for the bridge. When I add a new interface to the > > bridge, the SDN controller doesn't know the existence of the new > interface. > > I checked man pages for ovs-vsctl, there seems to be no such command. > > I am using Ryu controller running rest_router application, is this > problem > > related with my SDN controller? > > OVS should be notifying connected controllers of new interfaces via > OpenFlow "port status" notifications. Ryu should be able to see those. > -- Yuanjun ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
[ovs-discuss] How to notify the SDN controller when adding a new interface to OVS bridge?
Hi All, I want to dynamically add new interface to OVS bridge, but it seems that the SDN controller knows the interfaces and mac addresses only when we first set controller for the bridge. When I add a new interface to the bridge, the SDN controller doesn't know the existence of the new interface. I checked man pages for ovs-vsctl, there seems to be no such command. I am using Ryu controller running rest_router application, is this problem related with my SDN controller? Thanks Yuanjun ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
[ovs-discuss] Assign IP Addresses for Multiple Interfaces on OVS Bridge with Ryu rest_router application
Hi all, I am trying to assign IP addresses on multiple interfaces on OVS Bridge with Ryu. As I have noticed, Ryu assign IP addresses on multiple interfaces in the same order that the interfaces are added to the bridge. For example, if I have a bridge with eth1 and eth2. When I called Ryu RESTful API to assign IP address (curl -X POST -d "{"address":"10.10.10.1/24"}" controllerip:port/router/ROUTERID) for two times. The first IP will be assigned on eth1, and the second IP will be assigned on eth2. I also noticed that in RYU rest_router application, there seems to be no information about interfaces of a router, how do the controller know how many interfaces the router has? My question is, is it possible for me to assign IP for a specific interface in any order? Thanks, Yuanjun ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
Re: [ovs-discuss] OVS bridge absorbing ARP replies
Hi Flavio, Thanks for your reply. I might misconfigured OVS bridge. I forgot to remove the IP address from the original interface, that might caused the problem. On Fri, Dec 30, 2016 at 10:33 AM, Flavio Leitner wrote: > On Thu, 29 Dec 2016 20:36:05 -0500 > Yuanjun Yao wrote: > > > Hi all, > > > > My network topology is host1(eth1:192.168.1.2)—(eth2:192.168.1.1)host2. > I > > added an OVS bridge on host2 and added eth2 as a port. I configured the > ip > > address via SDN controller. I could ping from host 1 to host2, but failed > > the other way. > > > > My configuration commands on host2 are: > > > > #ovs-vsctl add-br ovsbr1 > > > > #ovs-vsctl add-port ovsbr1 eth2 > > > > Then I set the ip address of ovsbr1 via SDN controller. I can ping from > > host1 to 192.168.1.1. But I can't ping from host 2 to host1. The reason > is > > that host2 can't process ARP replies from host1. The result of "arp" > shows > > that host 2 doesn't know the mac address of host1. > > > > I used tcpdump to capture the packets, it shows that ARP replies packets > > from are received at eth2. The result of "ovs-ofctl dump-flows ovsbr1" > > shows that arp replies are matched with the rule whose action is normal, > I > > also tried to add a flow that matches the arp replies and its action is > > "Local". None of this works. > > You could try to tcpdump the ovsbr1 where the IP address is and see > if the ARP packets are getting there. It sounds like a firewall issue. > > -- > Flavio > > -- Yuanjun ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
[ovs-discuss] (no subject)
-- Yuanjun ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
[ovs-discuss] OVS bridge absorbing ARP replies
Hi all, My network topology is host1(eth1:192.168.1.2)—(eth2:192.168.1.1)host2. I added an OVS bridge on host2 and added eth2 as a port. I configured the ip address via SDN controller. I could ping from host 1 to host2, but failed the other way. My configuration commands on host2 are: #ovs-vsctl add-br ovsbr1 #ovs-vsctl add-port ovsbr1 eth2 Then I set the ip address of ovsbr1 via SDN controller. I can ping from host1 to 192.168.1.1. But I can't ping from host 2 to host1. The reason is that host2 can't process ARP replies from host1. The result of "arp" shows that host 2 doesn't know the mac address of host1. I used tcpdump to capture the packets, it shows that ARP replies packets from are received at eth2. The result of "ovs-ofctl dump-flows ovsbr1" shows that arp replies are matched with the rule whose action is normal, I also tried to add a flow that matches the arp replies and its action is "Local". None of this works. What might be the problem? Thanks, Yuanjun ___ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss