Hi,

I am having great difficulty in setting the cookie field using ovs-oftl
tool. The value seems to be set sometimes and not other times.
What is the correct way to set this value in the flow definition for OF 1.0
switch.

#./ovs-ofctl mod-flows switch
"cookie=20000,hard_timeout=9999,in_port=8,dl_vlan=4,dl_vlan_pcp=2,dl_type=0x800,nw_proto=6,nw_tos=0,actions=output:2"
-v
Sep 04 07:32:03|00001|ofctl|INFO|connecting to
unix:/var/run/openvswitch/switch.mgmt
Sep 04 07:32:03|00002|vconn|DBG|unix:/var/run/openvswitch/switch.mgmt: sent
(Success): hello (xid=0x83bc0):
Sep 04 07:32:03|00003|vconn|DBG|unix:/var/run/openvswitch/switch.mgmt:
received: hello (xid=0x1db0d):
Sep 04 07:32:03|00004|vconn|DBG|unix:/var/run/openvswitch/switch.mgmt:
negotiated OpenFlow version 0x01 (we support versions 0x01 to 0x01
inclusive, peer no later than version 0x01)
Sep 04 07:32:03|00005|vconn|DBG|unix:/var/run/openvswitch/switch.mgmt: sent
(Success): flow_mod (xid=0x43c26):tcp,in_port=8,dl_vlan=4,dl_vlan_pcp=2,
MOD: cookie:0x4e20 idle:60 hard:9999 pri:32768 buf:0xffffffff flags:0
actions=output:2

# ./ovs-ofctl dump-flows switch
Sep 04 07:32:11|00001|ofctl|INFO|connecting to
unix:/var/run/openvswitch/switch.mgmt
stats_reply (xid=0x41bd): flags=none type=1(flow)
  cookie=0x0, duration_sec=8s, duration_nsec=152000000ns, table_id=0,
priority=32768, n_packets=0, n_bytes=0,
idle_timeout=60,hard_timeout=9999,tcp,in_port=8,dl_vlan=4,dl_vlan_pcp=2,actions=output:2
dl_vlan=4,dl_vlan_pcp=2,dl_type=0x800,nw_proto=6,nw_tos=0,actions=output:2"
-v8,d


See the cookie value is not set. Now if i re-run the same mod command, the
cookie field is set now.

#./ovs-ofctl mod-flows switch
"cookie=20000,hard_timeout=9999,in_port=8,dl_vlan=4,dl_vlan_pcp=2,dl_type=0x800,nw_proto=6,nw_tos=0,actions=output:2"
-v
Sep 04 07:32:15|00001|ofctl|INFO|connecting to
unix:/var/run/openvswitch/switch.mgmt
Sep 04 07:32:15|00002|vconn|DBG|unix:/var/run/openvswitch/switch.mgmt: sent
(Success): hello (xid=0x2d6c6):
Sep 04 07:32:15|00003|vconn|DBG|unix:/var/run/openvswitch/switch.mgmt:
received: hello (xid=0x76dfa):
Sep 04 07:32:15|00004|vconn|DBG|unix:/var/run/openvswitch/switch.mgmt:
negotiated OpenFlow version 0x01 (we support versions 0x01 to 0x01
inclusive, peer no later than version 0x01)
Sep 04 07:32:15|00005|vconn|DBG|unix:/var/run/openvswitch/switch.mgmt: sent
(Success): flow_mod (xid=0x9602b):tcp,in_port=8,dl_vlan=4,dl_vlan_pcp=2,
MOD: cookibash-3.00#

#./ovs-ofctl dump-flows switch
Sep 04 07:32:17|00001|ofctl|INFO|connecting to
unix:/var/run/openvswitch/switch.mgmt
stats_reply (xid=0xa1728): flags=none type=1(flow)
  cookie=0x4e20, duration_sec=14s, duration_nsec=66000000ns, table_id=0,
priority=32768, n_packets=0, n_bytes=0,
idle_timeout=60,hard_timeout=9999,tcp,in_port=8,dl_vlan=4,dl_vlan_pcp=2,actions=output:2


What is the way to set the cookie value correctly using ovs-ofctl ?
Thanks for your help.


-- 
With best regards,
Bhaskar.
_______________________________________________
openflow-discuss mailing list
openflow-discuss@lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/openflow-discuss

Reply via email to