bug 7857: Add network usage rules after router start

status 7857: resolved fixed
This commit is contained in:
kishan 2011-01-14 02:40:18 +05:30
parent 83503a46a9
commit f6ffdd2888

View File

@ -927,7 +927,16 @@ public abstract class CitrixResourceBase implements ServerResource {
}
}
}
if (vmSpec.getType() == VirtualMachine.Type.DomainRouter) {
// Create network usage rules for domR
NicTO[] nics = vmSpec.getNics();
for (NicTO nic : nics) {
if(nic.getType() == TrafficType.Control){
networkUsage(conn, nic.getIp(), "create", null);
}
}
}
state = State.Running;
return new StartAnswer(cmd);
} catch (Exception e) {