Initial OR-TAPI mapping: Topology
[transportpce.git] / tapi / src / test / java / org / opendaylight / transportpce / tapi / utils / TapiTopologyDataUtils.java
1 /*
2  * Copyright © 2020 Orange, Inc. 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.transportpce.tapi.utils;
10
11 import org.opendaylight.yang.gen.v1.urn.onf.otcc.yang.tapi.topology.rev181210.GetTopologyDetailsInput;
12 import org.opendaylight.yang.gen.v1.urn.onf.otcc.yang.tapi.topology.rev181210.GetTopologyDetailsInputBuilder;
13
14 public final class TapiTopologyDataUtils {
15     public static final String OPENROADM_TOPOLOGY_FILE = "src/test/resources/openroadm-topology.xml";
16     public static final String OPENROADM_NETWORK_FILE = "src/test/resources/openroadm-network.xml";
17     public static final String OTN_TOPOLOGY_FILE = "src/test/resources/otn-topology.xml";
18     public static final String PORTMAPPING_FILE = "src/test/resources/portmapping.xml";
19
20     public static GetTopologyDetailsInput buildGetTopologyDetailsInput(String topoName) {
21         GetTopologyDetailsInputBuilder builtInput = new GetTopologyDetailsInputBuilder();
22         builtInput.setTopologyIdOrName(topoName);
23         return builtInput.build();
24     }
25
26     private TapiTopologyDataUtils() {
27     }
28
29 }