2 * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.openflowplugin.api.openflow.md.util;
12 * @deprecated enum in api is not something what we would like to see in case it is evolving
13 * TODO: remove class for lithium release
15 * List of Openflow versions supported by the plugin
16 * Note: If you add a version here, make sure to update org.opendaylight.openflowplugin.openflow.md.util.OpenflowPortsUtil as well.
17 * Created by kramesha on 5/2/14.
19 public enum OpenflowVersion {
23 UNSUPPORTED((short)0x00);
26 private short version;
28 OpenflowVersion(final short version) {
29 this.version = version;
32 public static OpenflowVersion get(final Short version) {
33 for (final OpenflowVersion ofv : OpenflowVersion.values()) {
34 if (ofv.version == version) {
44 public short getVersion() {