You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2ebdb34
Browse filesBrowse the repository at this point in the historyBrowse files
committed
Support requesting a specific IPv4 address in Basic Networking during
* If the requested IPv4 address from the NicProfile was configured then it configures the IPv4 address, Netmask and Gateway to deploy the VM with the requested IP.
thrownewCloudRuntimeException(String.format("Trying to configure a Nic with the requested [IPv4='%s'] but cannot find a Vlan for the [network id='%s']",
906
+
requestedIpv4Address, network.getId()));
907
+
}
908
+
909
+
Stringipv4Gateway = vlanVo.getVlanGateway();
910
+
Stringipv4Netmask = vlanVo.getVlanNetmask();
911
+
912
+
if (!NetUtils.isValidIp4(ipv4Gateway)) {
913
+
thrownewCloudRuntimeException(String.format("The [IPv4Gateway='%s'] from [VlanId='%s'] is not valid", ipv4Gateway, vlanVo.getId()));
914
+
}
915
+
if (!NetUtils.isValidIp4Netmask(ipv4Netmask)) {
916
+
thrownewCloudRuntimeException(String.format("The [IPv4Netmask='%s'] from [VlanId='%s'] is not valid", ipv4Netmask, vlanVo.getId()));
thrownewCloudRuntimeException(String.format("Cannot acquire guest [IPv4 address='%s']; The Ip address is in [state='%s']", requestedIpv4Address, ipState));
0 commit comments