File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed
server/src/main/java/com/cloud/network/vpc Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change 7272import com .cloud .utils .db .SearchCriteria .Op ;
7373import com .cloud .utils .exception .CloudRuntimeException ;
7474import com .cloud .utils .net .NetUtils ;
75- import com .cloud .utils .net .NetworkProtocols ;
7675
7776@ Component
7877public class NetworkACLServiceImpl extends ManagerBase implements NetworkACLService {
@@ -588,11 +587,6 @@ protected void validateProtocol(NetworkACLItemVO networkACLItemVO) {
588587 if (!isIcmpProtocol && (icmpCode != null || icmpType != null )) {
589588 throw new InvalidParameterValueException ("Can specify icmpCode and icmpType for ICMP protocol only" );
590589 }
591- if (isIcmpProtocol ) {
592- if (!NetworkProtocols .validateIcmpTypeAndCode (icmpType , icmpCode )) {
593- throw new InvalidParameterValueException (String .format ("Unsupported icmptype %s or icmpcode %s" , icmpType , icmpCode ));
594- }
595- }
596590
597591 Integer sourcePortStart = networkACLItemVO .getSourcePortStart ();
598592 Integer sourcePortEnd = networkACLItemVO .getSourcePortEnd ();
You can’t perform that action at this time.
0 commit comments