mirror of https://github.com/apache/cloudstack.git
bug 7857: Add network usage rules after router start
status 7857: resolved fixed
This commit is contained in:
parent
83503a46a9
commit
f6ffdd2888
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue