mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
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…
x
Reference in New Issue
Block a user