2 * Copyright (c) 2016 Cisco Systems, 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.groupbasedpolicy.renderer.vpp.lisp.loopback;
11 import com.google.common.base.Preconditions;
14 * Created by Shakib Ahmed on 5/16/17.
16 public class SubnetHostInfo {
17 private String interfaceName;
18 private int portCount;
20 public SubnetHostInfo(String interfaceName) {
21 this.interfaceName = interfaceName;
25 public String getInterfaceName() {
29 public void setInterfaceName(String interfaceName) {
30 this.interfaceName = interfaceName;
33 public void incrementPortCount() {
37 public void decrementPortCount() {
38 Preconditions.checkArgument(portCount > 0, "No port to decrement");
42 public int incrementAndGetPortCount() {
47 public int decrementAndGetPortCount() {
52 public int getPortCount() {