vxlan: Fix failure to delete vxlan (#5079)

This commit is contained in:
Pearl Dsilva 2021-06-25 12:33:54 +05:30 committed by GitHub
parent 29109b4332
commit 5edcf33ff0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -376,7 +376,9 @@ public class BridgeVifDriver extends VifDriverBase {
command.add("-v", vNetId);
command.add("-p", pName);
command.add("-b", brName);
command.add("-d", String.valueOf(deleteBr));
if (cmdout != null && !cmdout.contains("vxlan")) {
command.add("-d", String.valueOf(deleteBr));
}
final String result = command.execute();
if (result != null) {