CS-15628: ip address id is required by createFirewallRule command

Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/3f4b7602
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/3f4b7602
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/3f4b7602

Branch: refs/heads/vpc
Commit: 3f4b7602f45b7cd2b797ae9826aac5deb81b6ed6
Parents: 406fd95
Author: Alena Prokharchyk <[email protected]>
Authored: Thu Jul 26 13:30:37 2012 -0700
Committer: Alena Prokharchyk <[email protected]>
Committed: Thu Jul 26 13:36:35 2012 -0700

----------------------------------------------------------------------
 .../cloud/api/commands/CreateFirewallRuleCmd.java  |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/3f4b7602/api/src/com/cloud/api/commands/CreateFirewallRuleCmd.java
----------------------------------------------------------------------
diff --git a/api/src/com/cloud/api/commands/CreateFirewallRuleCmd.java 
b/api/src/com/cloud/api/commands/CreateFirewallRuleCmd.java
index 81817dc..b437568 100644
--- a/api/src/com/cloud/api/commands/CreateFirewallRuleCmd.java
+++ b/api/src/com/cloud/api/commands/CreateFirewallRuleCmd.java
@@ -52,7 +52,7 @@ public class CreateFirewallRuleCmd extends BaseAsyncCreateCmd 
implements Firewal
     // ///////////////////////////////////////////////////
 
     @IdentityMapper(entityTableName="user_ip_address")
-    @Parameter(name = ApiConstants.IP_ADDRESS_ID, type = CommandType.LONG, 
description = "the IP address id of the port forwarding rule")
+    @Parameter(name = ApiConstants.IP_ADDRESS_ID, type = CommandType.LONG, 
required=true, description = "the IP address id of the port forwarding rule")
     private Long ipAddressId;
 
     @Parameter(name = ApiConstants.PROTOCOL, type = CommandType.STRING, 
required = true, description = "the protocol for the firewall rule. Valid 
values are TCP/UDP/ICMP.")

Reply via email to