Fixed authorizeNetworkGroupIngress api command (it stopped working after API refactor)

This commit is contained in:
alena 2010-11-15 17:07:13 -08:00
parent 1a8d9a92a7
commit d43a8e983c
2 changed files with 4 additions and 1 deletions

View File

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

View File

@ -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();