Ask Your Question

How to make flows permanent on the openvswitch?

asked 2015-02-06 22:48:08 -0700

jayakeerthi gravatar image

i installed openvswitch and configured flows from the controller running on the another pc. when i disconnect the PC from the switch all flows i inserted will go off. how can i make flows permanent on the switch or it is the default behavior of the ovs switch?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-02-08 09:40:27 -0700

if the switch runs in the fail secure mode then flow will be permanent (hard time out =0 and idle time = 0). To change the mode of ovs to fail secure mode, you could use :

sudo ovs-vsctl set-fail-mode br0 secure
edit flag offensive delete publish link more


it does not worked. After i stop the controller the switch's dump-flows shows no flow entries.

jayakeerthi ( 2015-02-10 03:48:44 -0700 )edit

could you give me details for the installed flow and the output of ovs-vsctl show and ovs-ofctl dump-flows <switch>.

subhash ( 2015-02-10 04:32:50 -0700 )edit

NXST_FLOW reply (xid=0x4): cookie=0x0, duration=940.908s, table=0, n_packets=0, n_bytes=0, idle_age=940, priority=1,ip,nw_dst= actions=mod_dl_dst:3e:b6:aa:97:22:c2,output:4 cookie=0x0, duration=1829.301s, table=0, n_packets=5, n_bytes=490, idle_age=1252, priority=1,ip,nw_dst= actions=mod_dl_dst:52:54:00:09:5a:81,output:4 cookie=0x0, duration=4758.755s, table=0, n_packets=7, n_bytes=686, idle_age=1252, priority=1,ip,nw_dst= actions=mod_dl_dst:52:54:00:8a:9e:e1,output:3 cookie=0x0, duration=4770.696s, table=0, n_packets=44, n_bytes=4312, idle_age=974, priority=1,ip,nw_dst= actions=mod_dl_dst:52:54:00:74:29:d1,output:2 cookie=0x0, duration=3141.488s, table=0, n_packets=8, n_bytes=959, idle_age=943, priority=501,ip,in_port=1,nw_dst=10.1.12 ...(more)

jayakeerthi ( 2015-02-13 23:31:42 -0700 )edit

Bridge "sdnbr1" Controller "tcp:" is_connected: true Port "sdnbr1" Interface "sdnbr1" type: internal Port "vport3" Interface "vport3" type: internal Port "eth1" Interface "eth1" Port "vport2" Interface "vport2" type: internal Port "vport1" Interface "vport1" type: internal ovs_version: "2.0.2"

jayakeerthi ( 2015-02-13 23:32:23 -0700 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-02-06 22:48:08 -0700

Seen: 635 times

Last updated: Feb 08 '15