* Moved all l2 forwarding services based on OF to a separate OSGi
[affinity.git] / affinity / api / src / main / java / org / opendaylight / affinity / affinity / AffinityAttributeType.java
1 package org.opendaylight.affinity.affinity;
2
3 /**
4  * The enumeration of affinity attributes. 
5  */
6 public enum AffinityAttributeType {
7     SET_DENY("deny"),
8     SET_PATH_REDIRECT("set_path_redirect");
9
10     String id;
11
12     private AffinityAttributeType(String id) {
13         this.id = id;
14     }
15     public String getId() {
16         return id;
17     }
18     public int calculateConsistentHashCode() {
19         if (this.id != null) {
20             return this.id.hashCode();
21         } else {
22             return 0;
23         }
24     }
25
26 }