mirror of https://github.com/apache/cloudstack.git
kvm: fix issue that network rules for secondary IPs are not applied (#3636)
When I add a secondary IP to a nic on shared network in advanced zone with security groups, the network rules for new IP are not applied on KVM hypervisors.
It is because "--action -A" cannot be recognized in security_group.py after commit ac73e7e671. changing to "--action=-A" will fix it.
This commit is contained in:
parent
dcc798d7aa
commit
23ca806db9
|
|
@ -3638,7 +3638,7 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv
|
|||
cmd.add("network_rules_vmSecondaryIp");
|
||||
cmd.add("--vmname", vmName);
|
||||
cmd.add("--nicsecips", secIp);
|
||||
cmd.add("--action", action);
|
||||
cmd.add("--action=" + action);
|
||||
|
||||
final String result = cmd.execute();
|
||||
if (result != null) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue