2 * Copyright (c) 2014 Contextream, 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.lispflowmapping.type;
12 * The LCAF enum. http://tools.ietf.org/html/draft-ietf-lisp-lcaf-03
14 public enum LispCanonicalAddressFormatEnum {
17 APPLICATION_DATA(4), //
19 TRAFFIC_ENGINEERING(10), //
23 private byte lispCode;
25 private LispCanonicalAddressFormatEnum(int lispCode) {
26 this.lispCode = (byte) lispCode;
29 public byte getLispCode() {
33 public static LispCanonicalAddressFormatEnum valueOf(int lispCode) {
34 for (LispCanonicalAddressFormatEnum val : values()) {
35 if (val.getLispCode() == lispCode) {