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:
Wei Zhou 2019-11-21 07:10:17 +01:00 committed by Rohit Yadav
parent dcc798d7aa
commit 23ca806db9
1 changed files with 1 additions and 1 deletions

View File

@ -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) {