]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virsh: tweak domif-getlink link state reporting message
authorErik Skultety <eskultet@redhat.com>
Tue, 24 Feb 2015 16:25:55 +0000 (17:25 +0100)
committerCole Robinson <crobinso@redhat.com>
Tue, 28 Apr 2015 15:06:38 +0000 (11:06 -0400)
According to docs, we only support 2 link states for an interface
up/down, 'up' being the default state if link state is unspecified in
domain's XML, so the message when no link state is provided should be
changed a little.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1141119
(cherry picked from commit d9c7f014ee7c23d25483acf4bce344fae169f1dd)

tools/virsh-domain-monitor.c

index 925eb1bbba72220d010cc337c9d03e36573ecf34..18ce9aeb55e05c48f101720a95bf079b83cfc778 100644 (file)
@@ -756,7 +756,7 @@ cmdDomIfGetLink(vshControl *ctl, const vshCmd *cmd)
     if ((state = virXPathString("string(./link/@state)", ctxt)))
         vshPrint(ctl, "%s %s", iface, state);
     else
-        vshPrint(ctl, "%s default", iface);
+        vshPrint(ctl, "%s up", iface);
 
     ret = true;