winterhazel commented on code in PR #7081:
URL: https://github.com/apache/cloudstack/pull/7081#discussion_r1811012616


##########
api/src/main/java/org/apache/cloudstack/api/command/user/firewall/CreatePortForwardingRuleCmd.java:
##########
@@ -107,8 +108,13 @@ public class CreatePortForwardingRuleCmd extends 
BaseAsyncCreateCmd implements P
                 description = "the ID of the virtual machine for the port 
forwarding rule")
     private Long virtualMachineId;
 
-    @Parameter(name = ApiConstants.CIDR_LIST, type = CommandType.LIST, 
collectionType = CommandType.STRING, description = "the cidr list to forward 
traffic from. Multiple entries must be separated by a single comma character 
(,). This parameter is deprecated. Do not use.")
-    private List<String> cidrlist;
+    @Parameter(name = ApiConstants.CIDR_LIST,
+            type = CommandType.LIST,
+            collectionType = CommandType.STRING,
+            description = "the CIDR list to allow traffic, all other CIDRs 
will be blocked. " +
+                    "Multiple entries must be separated by a single comma 
character (,). This param will be used only for VPC's networks. By default, all 
CIDRs are allowed.")

Review Comment:
   This could be extended to also support isolated networks. However, I don't 
see a point in doing so, as the same result can be accomplished by combining 
firewall and port forwarding rules when using isolated networks.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to