X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fsal%2Fnetworkconfiguration%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fnetworkconfig%2Fbridgedomain%2FConfigConstants.java;fp=opendaylight%2Fsal%2Fnetworkconfiguration%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fnetworkconfig%2Fbridgedomain%2FConfigConstants.java;h=27240e8f992618a93d022194c5e47efa66080b7a;hb=c0edbb276786c8f182281d993ac7d126e95e4a45;hp=0000000000000000000000000000000000000000;hpb=ebd2fbb7486febe6d330995238ce98bdb34fc77e;p=controller.git 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 index 0000000000..27240e8f99 --- /dev/null +++ b/opendaylight/sal/networkconfiguration/api/src/main/java/org/opendaylight/controller/sal/networkconfig/bridgedomain/ConfigConstants.java @@ -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