2 * Copyright (c) 2017 Cisco Systems. 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.groupbasedpolicy.renderer.vpp.lisp.flat.overlay;
10 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address;
12 import java.util.HashSet;
16 * Created by Shakib Ahmed on 5/4/17.
18 public class RoutingInfo {
19 private String ProtocolName;
20 private int count = 0;
21 private Set<Ipv4Address> allIpsInVrf;
23 public RoutingInfo() {
24 allIpsInVrf = new HashSet<>();
27 public String getProtocolName() {
31 public void setProtocolName(String protocolName) {
32 ProtocolName = protocolName;
35 public int getCount() {
39 public void addIpInVrf(Ipv4Address ip) {
44 public boolean ipAlreadyExistsinVrf(Ipv4Address ip) {
45 return allIpsInVrf.contains(ip);
48 private void incrementCount() {