2323import javax .ejb .Local ;
2424import javax .inject .Inject ;
2525
26- import com .cloud .network .vpc .dao .VpcDao ;
27- import org .apache .cloudstack .api .command .user .network .ListNetworkACLListsCmd ;
28- import org .apache .commons .lang .StringUtils ;
29- import org .apache .log4j .Logger ;
30- import org .springframework .stereotype .Component ;
31-
3226import org .apache .cloudstack .api .ApiErrorCode ;
3327import org .apache .cloudstack .api .ServerApiException ;
3428import org .apache .cloudstack .api .command .user .network .CreateNetworkACLCmd ;
29+ import org .apache .cloudstack .api .command .user .network .ListNetworkACLListsCmd ;
3530import org .apache .cloudstack .api .command .user .network .ListNetworkACLsCmd ;
3631import org .apache .cloudstack .context .CallContext ;
32+ import org .apache .commons .lang .StringUtils ;
33+ import org .apache .log4j .Logger ;
34+ import org .springframework .stereotype .Component ;
3735
3836import com .cloud .exception .InvalidParameterValueException ;
3937import com .cloud .exception .ResourceUnavailableException ;
4341import com .cloud .network .dao .NetworkDao ;
4442import com .cloud .network .dao .NetworkVO ;
4543import com .cloud .network .vpc .dao .NetworkACLDao ;
44+ import com .cloud .network .vpc .dao .VpcDao ;
4645import com .cloud .network .vpc .dao .VpcGatewayDao ;
4746import com .cloud .projects .Project .ListProjectResourcesCriteria ;
4847import com .cloud .server .ResourceTag .ResourceObjectType ;
@@ -606,7 +605,7 @@ public boolean revokeNetworkACLItem(long ruleId) {
606605
607606 @ Override
608607 public NetworkACLItem updateNetworkACLItem (Long id , String protocol , List <String > sourceCidrList , NetworkACLItem .TrafficType trafficType , String action ,
609- Integer number , Integer sourcePortStart , Integer sourcePortEnd , Integer icmpCode , Integer icmpType ) throws ResourceUnavailableException {
608+ Integer number , Integer sourcePortStart , Integer sourcePortEnd , Integer icmpCode , Integer icmpType , String newUUID ) throws ResourceUnavailableException {
610609 NetworkACLItemVO aclItem = _networkACLItemDao .findById (id );
611610 if (aclItem == null ) {
612611 throw new InvalidParameterValueException ("Unable to find ACL Item cannot be found" );
@@ -635,7 +634,7 @@ public NetworkACLItem updateNetworkACLItem(Long id, String protocol, List<String
635634 validateNetworkACLItem ((sourcePortStart == null ) ? aclItem .getSourcePortStart () : sourcePortStart , (sourcePortEnd == null ) ? aclItem .getSourcePortEnd ()
636635 : sourcePortEnd , sourceCidrList , protocol , icmpCode , (icmpType == null ) ? aclItem .getIcmpType () : icmpType , action , number );
637636
638- return _networkAclMgr .updateNetworkACLItem (id , protocol , sourceCidrList , trafficType , action , number , sourcePortStart , sourcePortEnd , icmpCode , icmpType );
637+ return _networkAclMgr .updateNetworkACLItem (id , protocol , sourceCidrList , trafficType , action , number , sourcePortStart , sourcePortEnd , icmpCode , icmpType , newUUID );
639638 }
640639
641640}
0 commit comments