]> git.proxmox.com Git - ovs.git/commit - utilities/ovs-vsctl.c
ovs-vsctl: Print error when add-port fails.
authorDaniele Di Proietto <diproiettod@vmware.com>
Wed, 21 Dec 2016 01:50:06 +0000 (17:50 -0800)
committerDaniele Di Proietto <diproiettod@vmware.com>
Wed, 21 Dec 2016 19:07:17 +0000 (11:07 -0800)
commitfeb38b6d35dd2b9e51c985b13449591ffc372672
treefbe1127edba90d7aed6d095ee7c31eeb7ed87905
parent91bb4a0be6ac0a475dc95c76774bf797f2d0533b
ovs-vsctl: Print error when add-port fails.

When the add-port command fails, vsctl reports the failure and just
suggests to check the logs for more details.

ovs-vswitchd fills the error column in the Interface table with a
description of the error, so it might be helpful to print that.

This is useful especially for dpdk devices, because the port naming
change could use a better error reporting.

I'm planning another patch to make sure that ovs-vswitch writes
appropriates information in the error column, after the dpdk port naming
changes are merged.

CC: Ben Pfaff <blp@ovn.org>
Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
Acked-by: Ben Pfaff <blp@ovn.org>
tests/ovs-vsctl.at
tests/ovs-vswitchd.at
utilities/ovs-vsctl.c