[ovs-git] Open vSwitch: ofp-print: Make port "config" and "state" output easier to read. (master)

dev at openvswitch.org dev at openvswitch.org
Wed Jul 27 00:07:49 UTC 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, master has been updated
       via  0ab14c8e284b7c5c68aff1ccc6795a1d4b58bd49 (commit)
      from  06b6d65132e54582031c8166c74725fc90239588 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 0ab14c8e284b7c5c68aff1ccc6795a1d4b58bd49
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=0ab14c8e284b7c5c68aff1ccc6795a1d4b58bd49
Author: Ben Pfaff <blp at nicira.com>
		
ofp-print: Make port "config" and "state" output easier to read.
		
This changes the output of "ovs-ofctl show" from printing ports like this:
     1(eth1): addr:50:54:00:00:00:02, config: 0x11, state:0x1
to this:
     1(eth1): addr:50:54:00:00:00:02
         config:     PORT_DOWN NO_FLOOD
         state:      LINK_DOWN
which seems much easier to read.

It also eliminates trailing white space from the output.

Reported-by: Ethan Jackson <ethan at nicira.com>


-----------------------------------------------------------------------

Summary of changes:
 lib/ofp-print.c    |  145 ++++++++++++++++++++++++++++++++++++++--------------
 tests/ofp-print.at |   44 ++++++++++------
 tests/ofproto.at   |   16 ++++--
 3 files changed, 143 insertions(+), 62 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list