Add lisp commands for L3 overlay
[groupbasedpolicy.git] / renderers / vpp / src / main / java / org / opendaylight / groupbasedpolicy / renderer / vpp / commands / lisp / dom / MapServerDom.java
1 /*
2  * Copyright (c) 2017 Cisco Systems. All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.groupbasedpolicy.renderer.vpp.commands.lisp.dom;
10
11 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.lisp.rev170315.map.servers.grouping.map.servers.MapServer;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.lisp.rev170315.map.servers.grouping.map.servers.MapServerBuilder;
14
15 /**
16  * Created by Shakib Ahmed on 3/20/17.
17  */
18 public class MapServerDom implements CommandModel{
19     private IpAddress ipAddress;
20
21     public IpAddress getIpAddress() {
22         return ipAddress;
23     }
24
25     public void setIpAddress(IpAddress ipAddress) {
26         this.ipAddress = ipAddress;
27     }
28
29     @Override
30     public MapServer getSALObject() {
31         return new MapServerBuilder().setIpAddress(ipAddress).build();
32     }
33 }