CLOUDSTACK-8749: KVM - cleanup linklocal interface based on names

This tries to avoid cleaning by a device name.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #718
This commit is contained in:
Rohit Yadav 2015-08-19 15:38:31 +05:30
parent 1a106ec16f
commit 74f697a2dd
1 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,7 @@ public class BridgeVifDriver extends VifDriverBase {
for (String line : lines) {
String[] tokens = line.split(" ");
if (!tokens[2].equalsIgnoreCase(linkLocalBr)) {
Script.runSimpleBashScript("ip route del " + NetUtils.getLinkLocalCIDR());
Script.runSimpleBashScript("ip route del " + NetUtils.getLinkLocalCIDR() + " dev " + tokens[2]);
} else {
foundLinkLocalBr = true;
}