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:
parent
4db39e3fee
commit
a923865a0e
@ -894,7 +894,7 @@ cmdInterfaceBridge(vshControl *ctl, const vshCmd *cmd)
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((delay || stp) &&
|
if (stp &&
|
||||||
((virAsprintf(&delay_str, "%d", delay) < 0) ||
|
((virAsprintf(&delay_str, "%d", delay) < 0) ||
|
||||||
!xmlSetProp(br_node, BAD_CAST "delay", BAD_CAST delay_str))) {
|
!xmlSetProp(br_node, BAD_CAST "delay", BAD_CAST delay_str))) {
|
||||||
vshError(ctl, _("Failed to set bridge delay %d in xml document"), delay);
|
vshError(ctl, _("Failed to set bridge delay %d in xml document"), delay);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user