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.lisp.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), //
24 private byte lispCode;
26 LispCanonicalAddressFormatEnum(int lispCode) {
27 this.lispCode = (byte) lispCode;
30 public byte getLispCode() {
34 public static LispCanonicalAddressFormatEnum valueOf(int lispCode) {
35 for (LispCanonicalAddressFormatEnum val : values()) {
36 if (val.getLispCode() == lispCode) {