Fix imports after Lisp model update in honeycomb
[groupbasedpolicy.git] / renderers / vpp / src / main / java / org / opendaylight / groupbasedpolicy / renderer / vpp / commands / lisp / ConfigureLispStatusCommand.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;
10
11 import org.opendaylight.groupbasedpolicy.renderer.vpp.commands.lisp.dom.LispDom;
12 import org.opendaylight.groupbasedpolicy.renderer.vpp.util.VppIidFactory;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.lisp.rev170808.Lisp;
14 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
15
16 /**
17  * Created by Shakib Ahmed on 3/16/17.
18  */
19 public class ConfigureLispStatusCommand extends AbstractLispCommand<Lisp> {
20
21     private LispDom lispDom;
22
23     public ConfigureLispStatusCommand(LispDom data) {
24         lispDom = data;
25     }
26
27     @Override
28     public InstanceIdentifier<Lisp> getIid() {
29         return VppIidFactory.getLispStateIid();
30     }
31
32     @Override
33     public Lisp getData() {
34         return lispDom.getSALObject();
35     }
36
37     @Override
38     public String toString() {
39         return "state: " + lispDom.isEnabled();
40     }
41 }