Skip to content

Commit 3fd35dd

Browse files
committed
CLOUDSTACK-8749: KVM - cleanup linklocal interface based on names
This tries to avoid cleaning by a device name. This closes #718 (cherry picked from commit 74f697a) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent b913c88 commit 3fd35dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ private void deleteExitingLinkLocalRouteTable(String linkLocalBr) {
287287
for (String line : lines) {
288288
String[] tokens = line.split(" ");
289289
if (!tokens[2].equalsIgnoreCase(linkLocalBr)) {
290-
Script.runSimpleBashScript("ip route del " + NetUtils.getLinkLocalCIDR());
290+
Script.runSimpleBashScript("ip route del " + NetUtils.getLinkLocalCIDR() + " dev " + tokens[2]);
291291
} else {
292292
foundLinkLocalBr = true;
293293
}

0 commit comments

Comments
 (0)