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;
18 public class GbpGpeEntryDom implements CommandModel{
22 private LocalEid localEid;
23 private RemoteEid remoteEid;
24 private MapReplyAction action;
26 public String getId() {
30 public void setId(String id) {
34 public Long getVrf() {
38 public void setVrf(Long vrf) {
42 public Long getVni() {
46 public void setVni(Long vni) {
50 public RemoteEid getRemoteEid() {
54 public void setRemoteEid(RemoteEid remoteEid) {
55 this.remoteEid = remoteEid;
58 public MapReplyAction getAction() {
62 public LocalEid getLocalEid() {
66 public void setLocalEid(LocalEid localEid) {
67 this.localEid = localEid;
70 public void setAction(MapReplyAction action) {
75 public GpeEntry getSALObject() {
76 Preconditions.checkNotNull(id, "Gpe Entry Id need to be set!");
77 return new GpeEntryBuilder()
78 .setKey(new GpeEntryKey(id))
82 .setRemoteEid(remoteEid)
83 .setLocalEid(localEid)
84 .setAction(action).build();
87 @Override public String toString() {
88 return "GbpGpeEntry{" + "id='" + id + ", vrf=" + vrf + ", vni=" + vni + ", localEid=" + localEid
89 + ", remoteEid=" + remoteEid + ", action=" + action + '}';