]> git.proxmox.com Git - mirror_ovs.git/commit
Support accepting and displaying table names in OVS tools.
authorBen Pfaff <blp@ovn.org>
Sat, 6 Jan 2018 00:59:13 +0000 (16:59 -0800)
committerBen Pfaff <blp@ovn.org>
Thu, 1 Feb 2018 18:08:32 +0000 (10:08 -0800)
commit4bc938ccb3124282c873084a7d11cd8bc37e27a7
tree1e890e37284ea4a4f4618d073e064b2a194d244a
parenta203f653b1a6a2544603be00966b8d4731d91b69
Support accepting and displaying table names in OVS tools.

OpenFlow has little-known support for naming tables.  Open vSwitch has
supported table names for ages, but it has never used or displayed them
outside of commands dedicated to table manipulation.  This commit adds
support for table names in ovs-ofctl.  When a table has a name, it displays
that name in flows and actions, so that, for example, the following:
    table=1, arp, actions=resubmit(,2)
might become:
    table=ingress_acl, arp, actions=resubmit(,mac_learning)
given appropriately named tables.

For backward compatibility, only interactive ovs-ofctl commands by default
display table names; to display them in scripts, use the new --names
option.

This feature was inspired by a talk that Kei Nohguchi presented at Open
vSwitch 2017 Fall Conference.

CC: Kei Nohguchi <kei@nohguchi.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Mark Michelson <mmichels@redhat.com>
Reviewed-by: Yifeng Sun <pkusunyifeng@gmail.com>
23 files changed:
NEWS
include/openvswitch/ofp-actions.h
include/openvswitch/ofp-parse.h
include/openvswitch/ofp-print.h
include/openvswitch/ofp-util.h
lib/learn.c
lib/learn.h
lib/learning-switch.c
lib/ofp-actions.c
lib/ofp-parse.c
lib/ofp-print.c
lib/ofp-util.c
lib/vconn.c
ofproto/ofproto-dpif.c
ofproto/ofproto.c
ovn/controller/ofctrl.c
ovn/controller/pinctrl.c
ovn/utilities/ovn-sbctl.c
ovn/utilities/ovn-trace.c
tests/ofproto.at
utilities/ovs-ofctl.8.in
utilities/ovs-ofctl.c
utilities/ovs-testcontroller.c