ofp-print: Make port "config" and "state" output easier to read.
authorBen Pfaff <blp@nicira.com>
Thu, 14 Jul 2011 22:17:33 +0000 (15:17 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 27 Jul 2011 00:04:38 +0000 (17:04 -0700)
commit0ab14c8e284b7c5c68aff1ccc6795a1d4b58bd49
tree0310023fb16eaf5be2e4fb330033fcd972ac6d01
parent06b6d65132e54582031c8166c74725fc90239588
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@nicira.com>
lib/ofp-print.c
tests/ofp-print.at
tests/ofproto.at