public function createCidrRule($protocol, $cidr_ips, $from_port, $to_port = null) {
    $params = array_merge($this->getCommonRuleParams($protocol, $from_port, $to_port),
      array(
        'security_group_rule[source_type]' => 'cidr_ips',
        'security_group_rule[cidr_ips]' => $cidr_ips
      )
    );

    $this->executeCommand('security_group_rules_create', $params);
  }
public function createCidrRule($protocol, $cidr_ips, $from_port, $to_port = null) {
    $params = array_merge($this->getCommonRuleParams($protocol, $from_port, $to_port),
      array(
        'security_group_rule[source_type]' => 'cidr_ips',
        'security_group_rule[cidr_ips]' => $cidr_ips
      )
    );

    $this->executeCommand('security_group_rules_create', $params);
  }
public function createCidrRule ( $ protocol , $ cidr_ips , $ from_port , $ to_port = null ) { $ params = array_merge ( $ this -> getCommonRuleParams ( $ protocol , $ from_port , $ to_port ) , array ( 'security_group_rule[source_type]' => 'cidr_ips' , 'security_group_rule[cidr_ips]' => $ cidr_ips ) ) ; $ this -> executeCommand ( 'security_group_rules_create' , $ params ) ; }
Creates a CIDR based security group rule.  Requires that security group already be created
or shown.

@param string $protocol Which protocol for the rule.  One of "tcp", "udp", or "icmp"
@param string $cidr_ips An IP range in CIDR notation. @see http://en.wikipedia.org/wiki/CIDR_notation
@param int $from_port The starting port of a range of ports, or the ICMP type.  If $to_port is null, this port will be used as the start and end of the range, effectively opening only this port number
@param mixed $to_port The ending port of a range of ports, the ICMP code or null.  If null is specified, this should default to the same as $from_port.
@return void
Creates a CIDR based security group rule . Requires that security group already be created or shown .