Use constants for NeutronSecurityRule
[ovsdb.git] / openstack / net-virt / src / main / java / org / opendaylight / ovsdb / openstack / netvirt / translator / NeutronSecurityRule.java
index b8b9228a3e914e8bcfdd9721feecec026741128d..e8707dd7028316fe127be2fbcd2e492e2b6ee00b 100644 (file)
@@ -41,9 +41,17 @@ public class NeutronSecurityRule implements Serializable, INeutronObject {
     @XmlElement(name = "id")
     String securityRuleUUID;
 
+    public static final String DIRECTION_EGRESS = "egress";
+    public static final String DIRECTION_INGRESS = "ingress";
+
     @XmlElement(name = "direction")
     String securityRuleDirection;
 
+    public static final String PROTOCOL_ICMP = "icmp";
+    public static final String PROTOCOL_TCP = "tcp";
+    public static final String PROTOCOL_UDP = "udp";
+    public static final String PROTOCOL_ICMPV6 = "icmpv6";
+
     @XmlElement(name = "protocol")
     String securityRuleProtocol;
 
@@ -53,6 +61,9 @@ public class NeutronSecurityRule implements Serializable, INeutronObject {
     @XmlElement(name = "port_range_max")
     Integer securityRulePortMax;
 
+    public static final String ETHERTYPE_IPV4 = "IPv4";
+    public static final String ETHERTYPE_IPV6 = "IPv6";
+
     @XmlElement(name = "ethertype")
     String securityRuleEthertype;