mirror of https://gitee.com/openkylin/libvirt.git
virsh: network-port: remove pointless comment
We do not have a legacy API for listing network ports so there's nothing to fall back on. Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
parent
1647e376e8
commit
20bbf85954
|
@ -1693,7 +1693,6 @@ virshNetworkPortListCollect(vshControl *ctl,
|
||||||
if (!(network = virshCommandOptNetwork(ctl, cmd, NULL)))
|
if (!(network = virshCommandOptNetwork(ctl, cmd, NULL)))
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
/* try the list with flags support (0.10.2 and later) */
|
|
||||||
if ((ret = virNetworkListAllPorts(network,
|
if ((ret = virNetworkListAllPorts(network,
|
||||||
&list->ports,
|
&list->ports,
|
||||||
flags)) < 0)
|
flags)) < 0)
|
||||||
|
|
Loading…
Reference in New Issue