1 package org.opendaylight.openflowplugin.api.openflow.md.util;
4 * @deprecated enum in api is not something what we would like to see in case it is evolving
5 * TODO: remove class for lithium release
7 * List of Openflow versions supported by the plugin
8 * Note: If you add a version here, make sure to update org.opendaylight.openflowplugin.openflow.md.util.OpenflowPortsUtil as well.
9 * Created by kramesha on 5/2/14.
11 public enum OpenflowVersion {
15 UNSUPPORTED((short)0x00);
18 private short version;
20 OpenflowVersion(final short version) {
21 this.version = version;
24 public static OpenflowVersion get(final Short version) {
25 for (final OpenflowVersion ofv : OpenflowVersion.values()) {
26 if (ofv.version == version) {
36 public short getVersion() {