1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-07 17:28:15 +00:00

virsh iface-bridge: Ignore delay if stp is turned off

Delay only makes sense with STP enabled.
This commit is contained in:
Jiri Denemark 2013-06-01 01:28:36 +02:00
parent 4db39e3fee
commit a923865a0e

View File

@ -894,7 +894,7 @@ cmdInterfaceBridge(vshControl *ctl, const vshCmd *cmd)
goto cleanup;
}
if ((delay || stp) &&
if (stp &&
((virAsprintf(&delay_str, "%d", delay) < 0) ||
!xmlSetProp(br_node, BAD_CAST "delay", BAD_CAST delay_str))) {
vshError(ctl, _("Failed to set bridge delay %d in xml document"), delay);