mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-16 02:22:52 +01:00
Fixed authorizeNetworkGroupIngress api command (it stopped working after API refactor)
This commit is contained in:
parent
1a8d9a92a7
commit
d43a8e983c
@ -224,6 +224,9 @@ public class ApiDispatcher {
|
|||||||
case LONG:
|
case LONG:
|
||||||
listParam.add(Long.valueOf(token));
|
listParam.add(Long.valueOf(token));
|
||||||
break;
|
break;
|
||||||
|
case STRING:
|
||||||
|
listParam.add(token.toString());
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
field.set(cmdObj, listParam);
|
field.set(cmdObj, listParam);
|
||||||
|
|||||||
@ -420,7 +420,7 @@ public class NetworkGroupManagerImpl implements NetworkGroupManager {
|
|||||||
|
|
||||||
@Override @DB @SuppressWarnings("rawtypes")
|
@Override @DB @SuppressWarnings("rawtypes")
|
||||||
public List<IngressRuleVO> authorizeNetworkGroupIngress(AuthorizeNetworkGroupIngressCmd cmd) throws InvalidParameterValueException, PermissionDeniedException{
|
public List<IngressRuleVO> authorizeNetworkGroupIngress(AuthorizeNetworkGroupIngressCmd cmd) throws InvalidParameterValueException, PermissionDeniedException{
|
||||||
String groupName = cmd.getName();
|
String groupName = cmd.getNetworkGroupName();
|
||||||
String protocol = cmd.getProtocol();
|
String protocol = cmd.getProtocol();
|
||||||
Integer startPort = cmd.getStartPort();
|
Integer startPort = cmd.getStartPort();
|
||||||
Integer endPort = cmd.getEndPort();
|
Integer endPort = cmd.getEndPort();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user