ofproto/ofproto-dpif.c: Re-implement the ofproto/trace command
authorAlex Wang <alexw@nicira.com>
Mon, 20 May 2013 18:36:05 +0000 (11:36 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 21 May 2013 17:55:14 +0000 (10:55 -0700)
commit50aa28fdbf2df9d81d663dc6442ab620f912a39e
tree1581de8961b6ccde2e31dfc3e6ef23bc62e0ec55
parente8999bdc671c60775ba410bcd5d12e383276d703
ofproto/ofproto-dpif.c: Re-implement the ofproto/trace command

Since the use of single datapath, all bridges belonging to the same type of
datapath will use the same (single) datapath. This causes confusion in the
current 'ofproto/trace' command. Especially, when given the unrelated
'bridge' and 'in_port' combination, the current implementation will still
be able to process and give misleading output. Thusly, this patch changes
the 'ofproto/trace' command syntax to formats shown as follow.

ofproto/trace [datapath] odp_flow [-generate|packet]
ofproto/trace bridge br_flow [-generate|packet]

Also, this patch updates the tests and the manpages accordingly.

Co-authored-by: Ben Pfaff <blp@nicira.com>
Signed-off-by: Alex Wang <alexw@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto-dpif.c
ofproto/ofproto-unixctl.man
tests/learn.at
tests/ofproto-dpif.at
tests/tunnel.at