NetworkConfiguration -> BridgeDomain Configuration Service
[controller.git] / opendaylight / sal / networkconfiguration / api / src / main / java / org / opendaylight / controller / sal / networkconfig / bridgedomain / ConfigConstants.java
diff --git a/opendaylight/sal/networkconfiguration/api/src/main/java/org/opendaylight/controller/sal/networkconfig/bridgedomain/ConfigConstants.java b/opendaylight/sal/networkconfiguration/api/src/main/java/org/opendaylight/controller/sal/networkconfig/bridgedomain/ConfigConstants.java
new file mode 100644 (file)
index 0000000..27240e8
--- /dev/null
@@ -0,0 +1,33 @@
+package org.opendaylight.controller.sal.networkconfig.bridgedomain;
+
+/**
+ * Enum constant that is used as a key for the configuration parameters for BridgeDomains and Ports.
+ * The main intention of having a constant type is to avoid fragmentation and find common grounds for
+ * applications to rely on.
+ *
+ * This is set to expand based on various capabilities south-bound protocol might expose.
+ * Not all of them be supported by all the plugins. But this gives a consolidated view of
+ * all the supported feature configs and avoid config fragmentation.
+ */
+public enum ConfigConstants {
+    TYPE("type"),
+    VLAN("Vlan"),
+    VLAN_MODE("vlan_mode"),
+    TUNNEL_TYPE("Tunnel Type"),
+    SOURCE_IP("Source IP"),
+    DEST_IP("Destination IP"),
+    MACADDRESS("MAC Address"),
+    INTERFACE_IDENTIFIER("Interface Identifier"),
+    MGMT("Management"),
+    CUSTOM("Custom Configurations");
+
+    private ConfigConstants(String name) {
+        this.name = name;
+    }
+
+    private String name;
+
+    public String toString() {
+        return name;
+    }
+}
\ No newline at end of file