]> git.proxmox.com Git - ovs.git/commit - tests/ovn.at
actions: Omit table number when possible for formatting "next" action.
authorBen Pfaff <blp@ovn.org>
Fri, 20 Jan 2017 21:44:27 +0000 (13:44 -0800)
committerBen Pfaff <blp@ovn.org>
Sat, 21 Jan 2017 20:25:13 +0000 (12:25 -0800)
commit8f5de08322673f4e60f44d599fa7ee4de65bc078
tree534e93d852ef053621459a90d4d8ee562d0666bb
parentebb467ff1c255813d6ba27d91ef6180e9a20fe0a
actions: Omit table number when possible for formatting "next" action.

Until now, formatting the "next" action has always required including
the table number, because the action struct didn't include enough context
so that the formatter could decide whether the table number was the next
table or some other table.  This is more or less OK, but an upcoming commit
will add a "pipeline" field to the "next" action, which means that the same
policy there would require that the pipeline always be printed.  That's a
little obnoxious because 99+% of the time, the pipeline to be printed is
the same pipeline that the flow is in and printing it would be distracting.
So it's better to store some context to help with formatting.  This commit
begins adopting that policy for the existing table number field.

Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Mickey Spiegel <mickeys.dev@gmail.com>
include/ovn/actions.h
ovn/lib/actions.c
tests/ovn.at