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
9 package org.opendaylight.groupbasedpolicy.renderer.vpp.commands.lisp;
11 import org.opendaylight.groupbasedpolicy.renderer.vpp.commands.lisp.dom.MapResolverDom;
12 import org.opendaylight.groupbasedpolicy.renderer.vpp.util.VppIidFactory;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.lisp.rev170315.map.resolvers.grouping.map.resolvers.MapResolver;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.lisp.rev170315.map.resolvers.grouping.map.resolvers.MapResolverKey;
15 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
18 * Created by Shakib Ahmed on 3/20/17.
20 public class ConfigureMapResolverCommand extends AbstractLispCommand<MapResolver>{
21 MapResolverDom mapResolverDom;
23 public ConfigureMapResolverCommand(MapResolverDom mapResolverDom) {
24 this.mapResolverDom = mapResolverDom;
28 public InstanceIdentifier<MapResolver> getIid() {
29 return VppIidFactory.getMapResolverIid(new MapResolverKey(mapResolverDom.getIpAddress()));
33 public MapResolver getData() {
34 return mapResolverDom.getSALObject();