2 * Copyright (c) 2015 Cisco Systems, Inc. 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
8 package org.opendaylight.lispflowmapping.lisp.serializer.address;
10 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType;
13 * Class to pass around (de)serialization context information.
15 * @author Lorand Jakab
18 public class LispAddressSerializerContext {
19 public static final short MASK_LEN_MISSING = -1;
20 private InstanceIdType vni;
21 private short maskLen;
23 public LispAddressSerializerContext(InstanceIdType vni) {
24 this(vni, MASK_LEN_MISSING);
27 public LispAddressSerializerContext(short maskLen) {
31 public LispAddressSerializerContext(InstanceIdType vni, short maskLength) {
33 this.maskLen = maskLength;
36 InstanceIdType getVni() {
40 void setVni(InstanceIdType vni) {
48 void setMaskLen(short maskLen) {
49 this.maskLen = maskLen;