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.commands.lisp.dom;
10 import com.google.common.base.Preconditions;
11 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.gpe.rev170801.gpe.entry.table.grouping.gpe.entry.table.GpeEntry;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.gpe.rev170801.gpe.entry.table.grouping.gpe.entry.table.GpeEntryBuilder;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.gpe.rev170801.gpe.entry.table.grouping.gpe.entry.table.GpeEntryKey;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.gpe.rev170801.gpe.entry.table.grouping.gpe.entry.table.gpe.entry.LocalEid;
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.gpe.rev170801.gpe.entry.table.grouping.gpe.entry.table.gpe.entry.RemoteEid;
16 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.lisp.rev170808.MapReplyAction;
19 * Created by Shakib Ahmed on 6/1/17.
21 public class GbpGpeEntryDom implements CommandModel{
25 private LocalEid localEid;
26 private RemoteEid remoteEid;
27 private MapReplyAction action;
29 public String getId() {
33 public void setId(String id) {
37 public Long getVrf() {
41 public void setVrf(Long vrf) {
45 public Long getVni() {
49 public void setVni(Long vni) {
53 public RemoteEid getRemoteEid() {
57 public void setRemoteEid(RemoteEid remoteEid) {
58 this.remoteEid = remoteEid;
61 public MapReplyAction getAction() {
65 public LocalEid getLocalEid() {
69 public void setLocalEid(LocalEid localEid) {
70 this.localEid = localEid;
73 public void setAction(MapReplyAction action) {
78 public GpeEntry getSALObject() {
79 Preconditions.checkNotNull(id, "Gpe Entry Id need to be set!");
80 return new GpeEntryBuilder()
81 .setKey(new GpeEntryKey(id))
85 .setRemoteEid(remoteEid)
86 .setLocalEid(localEid)
87 .setAction(action).build();