@@ -838,16 +838,16 @@ protected Integer applyProfileToNic(NicVO vo, NicProfile profile, Integer device
838838
839839 vo .setDefaultNic (profile .isDefaultNic ());
840840
841- vo .setIp4Address (profile .getIPv4Address ());
841+ vo .setIPv4Address (profile .getIPv4Address ());
842842 vo .setAddressFormat (profile .getFormat ());
843843
844844 if (profile .getMacAddress () != null ) {
845845 vo .setMacAddress (profile .getMacAddress ());
846846 }
847847
848848 vo .setMode (profile .getMode ());
849- vo .setNetmask (profile .getIPv4Netmask ());
850- vo .setGateway (profile .getIPv4Gateway ());
849+ vo .setIPv4Netmask (profile .getIPv4Netmask ());
850+ vo .setIPv4Gateway (profile .getIPv4Gateway ());
851851
852852 if (profile .getBroadCastUri () != null ) {
853853 vo .setBroadcastUri (profile .getBroadCastUri ());
@@ -859,25 +859,25 @@ protected Integer applyProfileToNic(NicVO vo, NicProfile profile, Integer device
859859
860860 vo .setState (Nic .State .Allocated );
861861
862- vo .setIp6Address (profile .getIPv6Address ());
863- vo .setIp6Gateway (profile .getIPv6Gateway ());
864- vo .setIp6Cidr (profile .getIPv6Cidr ());
862+ vo .setIPv6Address (profile .getIPv6Address ());
863+ vo .setIPv6Gateway (profile .getIPv6Gateway ());
864+ vo .setIPv6Cidr (profile .getIPv6Cidr ());
865865
866866 return deviceId ;
867867 }
868868
869869 protected void applyProfileToNicForRelease (NicVO vo , NicProfile profile ) {
870- vo .setGateway (profile .getIPv4Gateway ());
870+ vo .setIPv4Gateway (profile .getIPv4Gateway ());
871871 vo .setAddressFormat (profile .getFormat ());
872- vo .setIp4Address (profile .getIPv4Address ());
873- vo .setIp6Address (profile .getIPv6Address ());
872+ vo .setIPv4Address (profile .getIPv4Address ());
873+ vo .setIPv6Address (profile .getIPv6Address ());
874874 vo .setMacAddress (profile .getMacAddress ());
875875 if (profile .getReservationStrategy () != null ) {
876876 vo .setReservationStrategy (profile .getReservationStrategy ());
877877 }
878878 vo .setBroadcastUri (profile .getBroadCastUri ());
879879 vo .setIsolationUri (profile .getIsolationUri ());
880- vo .setNetmask (profile .getIPv4Netmask ());
880+ vo .setIPv4Netmask (profile .getIPv4Netmask ());
881881 }
882882
883883 protected void applyProfileToNetwork (NetworkVO network , NetworkProfile profile ) {
@@ -1332,16 +1332,16 @@ public NicProfile prepareNic(VirtualMachineProfile vmProfile, DeployDestination
13321332
13331333 networkRate , _networkModel .isSecurityGroupSupportedInNetwork (network ), _networkModel .getNetworkTag (vmProfile .getHypervisorType (), network ));
13341334 guru .reserve (profile , network , vmProfile , dest , context );
1335- nic .setIp4Address (profile .getIPv4Address ());
1335+ nic .setIPv4Address (profile .getIPv4Address ());
13361336 nic .setAddressFormat (profile .getFormat ());
1337- nic .setIp6Address (profile .getIPv6Address ());
1337+ nic .setIPv6Address (profile .getIPv6Address ());
13381338 nic .setMacAddress (profile .getMacAddress ());
13391339 nic .setIsolationUri (profile .getIsolationUri ());
13401340 nic .setBroadcastUri (profile .getBroadCastUri ());
13411341 nic .setReserver (guru .getName ());
13421342 nic .setState (Nic .State .Reserved );
1343- nic .setNetmask (profile .getIPv4Netmask ());
1344- nic .setGateway (profile .getIPv4Gateway ());
1343+ nic .setIPv4Netmask (profile .getIPv4Netmask ());
1344+ nic .setIPv4Gateway (profile .getIPv4Gateway ());
13451345
13461346 if (profile .getReservationStrategy () != null ) {
13471347 nic .setReservationStrategy (profile .getReservationStrategy ());
@@ -3315,8 +3315,8 @@ public void doInTransactionWithoutResult(TransactionStatus status) {
33153315 @ Override
33163316 public NicVO savePlaceholderNic (Network network , String ip4Address , String ip6Address , Type vmType ) {
33173317 NicVO nic = new NicVO (null , null , network .getId (), null );
3318- nic .setIp4Address (ip4Address );
3319- nic .setIp6Address (ip6Address );
3318+ nic .setIPv4Address (ip4Address );
3319+ nic .setIPv6Address (ip6Address );
33203320 nic .setReservationStrategy (ReservationStrategy .PlaceHolder );
33213321 nic .setState (Nic .State .Reserved );
33223322 nic .setVmType (vmType );
0 commit comments