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 * @author Lorand Jakab
16 public class LispAddressSerializerContext {
17 public static final short MASK_LEN_MISSING = -1;
18 private InstanceIdType vni;
19 private short maskLen;
21 public LispAddressSerializerContext(InstanceIdType vni) {
22 this(vni, MASK_LEN_MISSING);
25 public LispAddressSerializerContext(short maskLen) {
29 public LispAddressSerializerContext(InstanceIdType vni, short maskLength) {
31 this.maskLen = maskLength;
34 InstanceIdType getVni() {
38 void setVni(InstanceIdType vni) {
46 void setMaskLen(short maskLen) {
47 this.maskLen = maskLen;