@@ -1640,7 +1640,7 @@ public Network createGuestNetwork(CreateNetworkCmd cmd) throws InsufficientCapac
16401640 }
16411641
16421642 Pair <Integer , Integer > interfaceMTUs = validateMtuConfig (publicMtu , privateMtu , zone .getId ());
1643- mtuCheckForVpcNetwork (vpcId , interfaceMTUs , publicMtu , privateMtu );
1643+ mtuCheckForVpcNetwork (vpcId , interfaceMTUs , publicMtu );
16441644
16451645 Network associatedNetwork = null ;
16461646 if (associatedNetworkId != null ) {
@@ -1899,15 +1899,15 @@ private NetworkOffering getAndValidateNetworkOffering(Long networkOfferingId) {
18991899 return ntwkOff ;
19001900 }
19011901
1902- protected void mtuCheckForVpcNetwork (Long vpcId , Pair <Integer , Integer > interfaceMTUs , Integer publicMtu , Integer privateMtu ) {
1902+ protected void mtuCheckForVpcNetwork (Long vpcId , Pair <Integer , Integer > interfaceMTUs , Integer publicMtu ) {
19031903 if (vpcId != null && publicMtu != null ) {
19041904 VpcVO vpc = _vpcDao .findById (vpcId );
19051905 if (vpc == null ) {
19061906 throw new CloudRuntimeException (String .format ("VPC with id %s not found" , vpcId ));
19071907 }
19081908 s_logger .warn (String .format ("VPC public MTU already set at VPC creation phase to: %s. Ignoring public MTU " +
19091909 "passed during VPC network tier creation " , vpc .getPublicMtu ()));
1910- interfaceMTUs .set (vpc .getPublicMtu (), privateMtu );
1910+ interfaceMTUs .set (vpc .getPublicMtu (), interfaceMTUs . second () );
19111911 }
19121912 }
19131913
0 commit comments