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 fec31d5
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -47,65 +47,47 @@ public class UpdatePortForwardingRuleCmd extends BaseAsyncCustomIdCmd {
47
47
@Parameter(name = ApiConstants.ID, type = CommandType.UUID, entityType = FirewallRuleResponse.class, required = true, description = "the ID of the port forwarding rule", since = "4.4")
48
48
privateLongid;
49
49
50
-
@Parameter(name = ApiConstants.PRIVATE_IP, type = CommandType.STRING, description = "the private IP address of the port forwarding rule")
51
-
privateStringprivateIp;
52
-
53
-
@Parameter(name = ApiConstants.PRIVATE_PORT, type = CommandType.STRING, description = "the private port of the port forwarding rule")
54
-
privateStringprivatePort;
55
-
56
-
@Parameter(name = ApiConstants.PROTOCOL,
57
-
type = CommandType.STRING,
58
-
description = "the protocol for the port fowarding rule. Valid values are TCP or UDP.")
59
-
privateStringprotocol;
60
-
61
-
@Parameter(name = ApiConstants.IP_ADDRESS_ID,
62
-
type = CommandType.UUID,
63
-
entityType = IPAddressResponse.class,
64
-
description = "the IP address id of the port forwarding rule")
65
-
privateLongpublicIpId;
66
-
67
-
@Parameter(name = ApiConstants.PUBLIC_PORT, type = CommandType.STRING, description = "the public port of the port forwarding rule")
68
-
privateStringpublicPort;
50
+
@Parameter(name=ApiConstants.PRIVATE_PORT, type=CommandType.INTEGER, description="the private port of the port forwarding rule")
description = "the ID of the virtual machine for the port forwarding rule")
74
57
privateLongvirtualMachineId;
75
58
59
+
@Parameter(name = ApiConstants.VM_GUEST_IP, type = CommandType.STRING, required = false, description = "VM guest nic Secondary ip address for the port forwarding rule", since = "4.5")
60
+
privateStringvmGuestIp;
61
+
76
62
@Parameter(name = ApiConstants.FOR_DISPLAY, type = CommandType.BOOLEAN, description = "an optional field, whether to the display the rule to the end user or not", since = "4.4", authorized = {RoleType.Admin})
if (rule.getSourcePortStart() != rule.getSourcePortEnd() && privatePort != null) {
1531
+
thrownewInvalidParameterValueException("Unable to update the private port of port forwarding rule as the rule has port range : " + rule.getSourcePortStart() + " to " + rule.getSourcePortEnd());
1532
+
}
1533
+
if (virtualMachineId == null && vmGuestIp != null) {
1534
+
thrownewInvalidParameterValueException("vmguestip should be set along with virtualmachineid");
0 commit comments