Skip to content

Commit 5edcf33

Browse files
authored
vxlan: Fix failure to delete vxlan (#5079)
1 parent 29109b4 commit 5edcf33

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/BridgeVifDriver.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,9 @@ private void deleteVnetBr(String brName, boolean deleteBr) {
376376
command.add("-v", vNetId);
377377
command.add("-p", pName);
378378
command.add("-b", brName);
379-
command.add("-d", String.valueOf(deleteBr));
379+
if (cmdout != null && !cmdout.contains("vxlan")) {
380+
command.add("-d", String.valueOf(deleteBr));
381+
}
380382

381383
final String result = command.execute();
382384
if (result != null) {

0 commit comments

Comments
 (0)