1 package org.opendaylight.openflowplugin.openflow.md.util;
3 /** List of Openflow versions supported by the plugin
4 * Note: If you add a version here, make sure to update {@link OpenflowPortsUtil} as well.
5 * Created by kramesha on 5/2/14.
7 public enum OpenflowVersion {
11 UNSUPPORTED((short)0x00);
14 private short version;
16 OpenflowVersion(short version) {
17 this.version = version;
20 public static OpenflowVersion get(Short version) {
21 for (OpenflowVersion ofv : OpenflowVersion.values()) {
22 if (ofv.version == version) {