mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
virsh iface-bridge: Ignore delay if stp is turned off
Delay only makes sense with STP enabled.
This commit is contained in:
1 parent
4db39e3fee
commit
a923865a0e
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user