933675cc4b157b8954eb570f316c8f2182489a6b
[alto.git] / alto-core / standard-northbound-routes / networkmap / api / src / main / java / org / opendaylight / alto / core / northbound / route / networkmap / AltoNbrNetworkmapUtils.java
1 /*
2  * Copyright (c) 2015 Yale University and others.  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.alto.core.northbound.route.networkmap;
10
11
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.alto.core.northbound.route.networkmap.rev151021.Records;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.alto.core.northbound.route.networkmap.rev151021.records.Record;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.alto.core.northbound.route.networkmap.rev151021.records.RecordKey;
15
16 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Uri;
17
18 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
19
20 public class AltoNbrNetworkmapUtils {
21
22     public static InstanceIdentifier<Record> getRecordIID(String path) {
23         RecordKey key = new RecordKey(new Uri(path));
24         return InstanceIdentifier.builder(Records.class).child(Record.class, key).build();
25     }
26 }
27