Fix of Lisp commands for DVR
[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.rev170808.map.servers.grouping.map.servers.MapServer;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.lisp.rev170808.map.servers.grouping.map.servers.MapServerBuilder;
14
15 public class MapServerDom implements CommandModel{
16     private IpAddress ipAddress;
17
18     public IpAddress getIpAddress() {
19         return ipAddress;
20     }
21
22     public void setIpAddress(IpAddress ipAddress) {
23         this.ipAddress = ipAddress;
24     }
25
26     @Override
27     public MapServer getSALObject() {
28         return new MapServerBuilder().setIpAddress(ipAddress).build();
29     }
30
31     @Override public String toString() {
32         return "MapServer{" + "ipAddress=" + ipAddress + '}';
33     }
34 }