Package org.opendaylight.neutron.spi
Class NeutronSecurityRule
- java.lang.Object
-
- org.opendaylight.neutron.spi.NeutronID
-
- org.opendaylight.neutron.spi.NeutronObject<NeutronSecurityRule>
-
- org.opendaylight.neutron.spi.NeutronSecurityRule
-
- All Implemented Interfaces:
Serializable,INeutronObject<NeutronSecurityRule>
public final class NeutronSecurityRule extends NeutronObject<NeutronSecurityRule>
See OpenStack Network API v2.0 Reference for description of annotated attributes. The current fields are as follows:id uuid (String) UUID for the security group rule. direction String Direction the VM traffic (ingress/egress). security_group_id The security group to associate rule with. protocol String IP Protocol (icmp, tcp, udp, etc) or uint8. port_range_min Integer Port at start of range port_range_max Integer Port at end of range ethertype String ethertype in L2 packet (IPv4, IPv6, etc) remote_ip_prefix String (IP cidr) CIDR for address range. remote_group_id uuid-str Source security group to apply to rule. tenant_id uuid-str Owner of security rule. Admin only outside tenant.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NeutronSecurityRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanextractField(String field, NeutronSecurityRule ans)StringgetSecurityRemoteGroupID()StringgetSecurityRuleDirection()StringgetSecurityRuleEthertype()StringgetSecurityRuleGroupID()IntegergetSecurityRulePortMax()IntegergetSecurityRulePortMin()StringgetSecurityRuleProtocol()StringgetSecurityRuleRemoteIpPrefix()voidsetSecurityRemoteGroupID(String securityRemoteGroupID)voidsetSecurityRuleDirection(String securityRuleDirection)voidsetSecurityRuleEthertype(String securityRuleEthertype)voidsetSecurityRuleGroupID(String securityRuleGroupID)voidsetSecurityRulePortMax(Integer securityRulePortMax)voidsetSecurityRulePortMin(Integer securityRulePortMin)voidsetSecurityRuleProtocol(String securityRuleProtocol)voidsetSecurityRuleRemoteIpPrefix(String securityRuleRemoteIpPrefix)StringtoString()-
Methods inherited from class org.opendaylight.neutron.spi.NeutronObject
extractFields, getProjectID, getRevisionNumber, getTenantID, initDefaults, setProjectID, setRevisionNumber, setTenantID, setTenantID
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.opendaylight.neutron.spi.INeutronObject
getID, setID
-
-
-
-
Method Detail
-
getSecurityRuleDirection
public String getSecurityRuleDirection()
-
setSecurityRuleDirection
public void setSecurityRuleDirection(String securityRuleDirection)
-
getSecurityRuleProtocol
public String getSecurityRuleProtocol()
-
setSecurityRuleProtocol
public void setSecurityRuleProtocol(String securityRuleProtocol)
-
getSecurityRulePortMin
public Integer getSecurityRulePortMin()
-
setSecurityRulePortMin
public void setSecurityRulePortMin(Integer securityRulePortMin)
-
getSecurityRulePortMax
public Integer getSecurityRulePortMax()
-
setSecurityRulePortMax
public void setSecurityRulePortMax(Integer securityRulePortMax)
-
getSecurityRuleEthertype
public String getSecurityRuleEthertype()
-
setSecurityRuleEthertype
public void setSecurityRuleEthertype(String securityRuleEthertype)
-
getSecurityRuleRemoteIpPrefix
public String getSecurityRuleRemoteIpPrefix()
-
setSecurityRuleRemoteIpPrefix
public void setSecurityRuleRemoteIpPrefix(String securityRuleRemoteIpPrefix)
-
getSecurityRemoteGroupID
public String getSecurityRemoteGroupID()
-
setSecurityRemoteGroupID
public void setSecurityRemoteGroupID(String securityRemoteGroupID)
-
getSecurityRuleGroupID
public String getSecurityRuleGroupID()
-
setSecurityRuleGroupID
public void setSecurityRuleGroupID(String securityRuleGroupID)
-
extractField
protected boolean extractField(String field, NeutronSecurityRule ans)
- Overrides:
extractFieldin classNeutronObject<NeutronSecurityRule>
-
toString
public String toString()
- Overrides:
toStringin classNeutronObject<NeutronSecurityRule>
-
-