Proposal: add an option to ovs-ofctl utility so as to obtain colorized output in tty, for easier reading. Currently, only the dump-flows command supports colors.
A new `--color` option has been added to ovs-ofctl so as to indicate whether color markers should be used or not. It can be set to `always` (force colors), `never` (no colors) or `auto` (use colors only if output is a tty). If provided without any value, it is the same as `auto`. If the option is not provided at all, colors are disabled by default. Quentin Monnet (2): ovs-ofctl: add color output to dump-flows command ovs-ofctl: complete color output for dump-flows command lib/bundle.c | 18 +- lib/bundle.h | 3 +- lib/dpif-netdev.c | 2 +- lib/dynamic-string.c | 32 ++++ lib/dynamic-string.h | 20 ++ lib/flow.c | 6 +- lib/flow.h | 3 +- lib/learn.c | 58 ++++-- lib/learn.h | 3 +- lib/learning-switch.c | 2 +- lib/match.c | 287 +++++++++++++++++----------- lib/match.h | 3 +- lib/meta-flow.c | 7 +- lib/multipath.c | 8 +- lib/multipath.h | 3 +- lib/nx-match.c | 17 +- lib/nx-match.h | 9 +- lib/odp-util.c | 6 +- lib/ofp-actions.c | 427 +++++++++++++++++++++++++++--------------- lib/ofp-actions.h | 3 +- lib/ofp-print.c | 97 ++++++---- lib/ofp-print.h | 8 +- lib/vconn.c | 6 +- ofproto/ofproto-dpif-xlate.c | 2 +- ofproto/ofproto-dpif.c | 4 +- ofproto/ofproto.c | 2 +- ovn/controller/ofctrl.c | 12 +- ovn/controller/pinctrl.c | 2 +- tests/test-ovn.c | 2 +- third-party/ofp-tcpdump.patch | 2 +- utilities/ovs-ofctl.c | 97 +++++++--- 31 files changed, 760 insertions(+), 391 deletions(-) -- 1.9.1 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev