On Thu, Mar 21, 2013 at 09:07:08AM +0200, Liran Schour wrote: > > I try to pass metadata to the controller through the following flow: > ovs-ofctl add-flow br-int "in_port=5 priority=2 actions=set_field:123-> > metadata,controller(reason=no_match)" > > I do see the following flow when I do dump-flows: > cookie=0x0, duration=310.921s, table=0, n_packets=0, n_bytes=0, > idle_age=310, priority=2,in_port=5 actions=load:0x7b->OXM_OF_METADATA > [],controller(reason=no_match) > > But when I check in the controller side I see metadata=0. > I check the metadata value with 2 different methods: > 1. By snooping the communication between switch to controller and see > metadata=0. > 2. By using the extract_flow function inside the controller to retrieve > the flow > corresponding to the packet_in message. > > What am I doing wrong here?
I don't know. I set up a test of my own with Open vSwitch from current "master". I added a single flow to the switch, with: ovs-ofctl add-flow br0 'actions=load:123->OXM_OF_METADATA[],controller,normal' Then I set up a simple "controller" to watch for packet-ins: ovs-ofctl monitor -P nxm br0 128 When I run packets through the switch, I see the metadata fields set as I would expect in the packet-ins, e.g. NXT_PACKET_IN (xid=0x0): total_len=42 in_port=1 metadata=0x7b (via action) data_len=42 (unbuffered) _______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss