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 boolean
extractField(String field, NeutronSecurityRule ans)
String
getSecurityRemoteGroupID()
String
getSecurityRuleDirection()
String
getSecurityRuleEthertype()
String
getSecurityRuleGroupID()
Integer
getSecurityRulePortMax()
Integer
getSecurityRulePortMin()
String
getSecurityRuleProtocol()
String
getSecurityRuleRemoteIpPrefix()
void
setSecurityRemoteGroupID(String securityRemoteGroupID)
void
setSecurityRuleDirection(String securityRuleDirection)
void
setSecurityRuleEthertype(String securityRuleEthertype)
void
setSecurityRuleGroupID(String securityRuleGroupID)
void
setSecurityRulePortMax(Integer securityRulePortMax)
void
setSecurityRulePortMin(Integer securityRulePortMin)
void
setSecurityRuleProtocol(String securityRuleProtocol)
void
setSecurityRuleRemoteIpPrefix(String securityRuleRemoteIpPrefix)
String
toString()
-
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:
extractField
in classNeutronObject<NeutronSecurityRule>
-
toString
public String toString()
- Overrides:
toString
in classNeutronObject<NeutronSecurityRule>
-
-