Part of libcloud.compute.drivers.openstack View Source View In Hierarchy
A Rule of a Security Group.
Constructor. @keyword id: Rule id. @type id: C{str} @keyword parent_group_id: ID of the parent security group. @type parent_group_id: C{str} @keyword ip_protocol: IP Protocol (icmp, tcp, udp, etc). @type ip_protocol: C{str} @keyword from_port: Port at start of range. @type from_port: C{int} @keyword to_port: Port at end of range. @type to_port: C{int} @keyword ip_range: CIDR for address range. @type ip_range: C{str} @keyword group: Name of a source security group to apply to rule. @type group: C{str} @keyword tenant_id: Owner of the security group. @type tenant_id: C{str} @keyword extra: Extra attributes associated with this rule. @type extra: C{dict}