]> xenbits.xensource.com Git - 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)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 4 Mar 2015 13:47:50 +0000 (14:47 +0100)
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

tools/virsh-domain-monitor.c

index fbafa7763f5221992dd0a63707d30769e2581ce5..464ac11900fd56f376724368d902224a5cd3aa88 100644 (file)
@@ -772,7 +772,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;