2 * Copyright (c) 2016 Inocybe Technologies and others. 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.vpnservice.utils;
11 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.vpnintent.rev150105.MplsLabels;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.vpnintent.rev150105.labels.Label;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.vpnintent.rev150105.labels.LabelKey;
14 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
16 public class IidFactory {
18 public static InstanceIdentifier<MplsLabels> getMplsLabelsIid() {
19 return InstanceIdentifier.builder(MplsLabels.class).build();
22 public static InstanceIdentifier<Label> getLabelIid(Long label) {
23 return InstanceIdentifier.create(MplsLabels.class).child(Label.class, new LabelKey(label));