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
8 package org.opendaylight.groupbasedpolicy.renderer.vpp.commands.lisp;
10 import org.opendaylight.groupbasedpolicy.renderer.vpp.commands.lisp.dom.GpeEnableDom;
11 import org.opendaylight.groupbasedpolicy.renderer.vpp.util.VppIidFactory;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.gpe.rev170801.gpe.feature.data.grouping.GpeFeatureData;
13 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
15 public class ConfigureGpeCommand extends AbstractLispCommand<GpeFeatureData> {
17 private GpeEnableDom gpeEnableDom;
19 public ConfigureGpeCommand(GpeEnableDom gpeEnableDom) {
20 this.gpeEnableDom = gpeEnableDom;
24 public InstanceIdentifier<GpeFeatureData> getIid() {
25 return VppIidFactory.getGpeFeatureDataIid();
29 public GpeFeatureData getData() {
30 return gpeEnableDom.getSALObject();
33 @Override public String toString() {
34 return "Operation: " + getOperation() + ", Iid: " + this.getIid() + ", " + gpeEnableDom.toString();