Hi, Thanks for the answers. I confirm that the "ovs-ofctl --strict del-flows br-tun priority=1" works.
Here I have another question about gre port traffic: I have two machines with two bridges on each host. They are connected by one Ethernet core directly: br-int ---- br-tun <----------------------> br-tun ------br-int HostA: [root@robinlinux ~]# ovs-vsctl show Bridge br-tun Port patch-int Interface patch-int type: patch options: {peer=patch-tun} Port br-tun Interface br-tun type: internal Port "gre-0" Interface "gre-0" type: gre options: {remote_ip="192.168.1.90"} Bridge br-int Port br-int tag: 1 Interface br-int type: internal Port patch-tun Interface patch-tun type: patch options: {peer=patch-int} I set br-int to have ip 8.8.8.1/24 HostB: Bridge br-tun Port patch-int Interface patch-int type: patch options: {peer=patch-tun} Port br-tun Interface br-tun type: internal Port "gre-0" Interface "gre-0" type: gre options: {remote_ip="192.168.1.91"} Bridge br-int Port br-int tag: 1 Interface br-int type: internal Port patch-tun Interface patch-tun type: patch options: {peer=patch-int} I set br-int to have ip 8.8.8.2/24 Flows on hosta, (hostb has the same): [root@robinlinux ~]# ovs-ofctl dump-flows br-int NXST_FLOW reply (xid=0x4): cookie=0x0, duration=2029.793s, table=0, n_packets=184, n_bytes=38048, priority=1 actions=NORMAL [root@robinlinux ~]# ovs-ofctl dump-flows br-tun NXST_FLOW reply (xid=0x4): cookie=0x0, duration=2067.207s, table=0, n_packets=0, n_bytes=0, priority=3,tun_id=0x1 actions=mod_vlan_vid:1,output:1 cookie=0x0, duration=2067.23s, table=0, n_packets=48, n_bytes=11448, priority=4,in_port=1,dl_vlan=1 actions=set_tunnel:0x1,NORMAL cookie=0x0, duration=446.121s, table=0, n_packets=8, n_bytes=592, priority=1 actions=drop [root@robinlinux ~]# ovs-ofctl show br-tun OFPT_FEATURES_REPLY (xid=0x1): ver:0x1, dpid:000082d76143ef41 n_tables:255, n_buffers:256 features: capabilities:0xc7, actions:0xfff 1(patch-int): addr:5a:a4:82:bd:a5:21 config: 0 state: 0 4(gre-0): addr:7a:1b:ac:9b:d7:08 config: 0 state: 0 LOCAL(br-tun): addr:82:d7:61:43:ef:41 config: PORT_DOWN state: LINK_DOWN OFPT_GET_CONFIG_REPLY (xid=0x3): frags=normal miss_send_len=0 How can I add flows to allow traffic go in/out gre port? I can ping each other if I change the drop rule of br-tun into normal rule. Thanks Yong Sheng Gong ----- Original Message ----- From: Justin Pettit <jpet...@nicira.com> To: Ben Pfaff <b...@nicira.com> Cc: gong ys <gong_ys2...@yahoo.com.cn>; "dev@openvswitch.org" <dev@openvswitch.org>; "gong...@cn.ibm.com" <gong...@cn.ibm.com> Sent: Thursday, May 10, 2012 12:41 AM Subject: Re: [ovs-dev] Ask for help to remove a flow On May 9, 2012, at 9:23 AM, Ben Pfaff wrote: > On Wed, May 09, 2012 at 01:37:38PM +0800, gong ys wrote: >> [root@robinlinux ~]# ovs-ofctl dump-flows br-tun >> NXST_FLOW reply (xid=0x4): >> cookie=0x0, duration=2267.877s, table=0, n_packets=0, n_bytes=0, >>priority=3,tun_id=0x2 actions=mod_vlan_vid:1,output:1 >> cookie=0x0, duration=2267.901s, table=0, n_packets=75, n_bytes=24062, >>priority=4,in_port=1,dl_vlan=1 actions=set_tunnel:0x2,NORMAL >> cookie=0x0, duration=2270.179s, table=0, n_packets=447, n_bytes=146822, >>priority=1 actions=drop >> [root@robinlinux ~]# ovs-ofctl del-flows br-tun priority=1 >> ovs-ofctl: unknown keyword priority > > OpenFlow does not support deleting all the flows with a particular > priority. That is why ovs-ofctl does not let you try to do it. Ben is of course correct. "--strict" works on the example you gave, but that's just because the flow with priority 1 has an empty match. Sorry about the confusion. --Justin _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev