Lisp processing additional fixes
[groupbasedpolicy.git] / renderers / vpp / src / main / java / org / opendaylight / groupbasedpolicy / renderer / vpp / commands / lisp / DeleteGpeFeatureDataCommand.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 package org.opendaylight.groupbasedpolicy.renderer.vpp.commands.lisp;
9
10 import org.opendaylight.groupbasedpolicy.renderer.vpp.util.VppIidFactory;
11 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.gpe.rev170801.gpe.feature.data.grouping.GpeFeatureData;
12 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
13 import org.slf4j.Logger;
14 import org.slf4j.LoggerFactory;
15
16 public class DeleteGpeFeatureDataCommand  extends AbstractLispCommand<GpeFeatureData> {
17     private static final Logger LOG = LoggerFactory.getLogger(DeleteGpeFeatureDataCommand.class);
18
19     @Override
20     public InstanceIdentifier<GpeFeatureData> getIid() {
21         return VppIidFactory.getGpeFeatureDataIid();
22     }
23
24     @Override
25     public GpeFeatureData getData() {
26         LOG.debug("Delete commands should not invoke getData()");
27         return null;
28     }
29
30     @Override public String toString() {
31         return "Operation: " + getOperation() + ", Iid: " + this.getIid() + ", " + "DeleteGpeFeatureDataCommand{}";
32     }
33 }