2 * Copyright © 2021 Orange, Inc. 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
8 package org.opendaylight.transportpce.pce.gnpy.consumer;
11 import org.opendaylight.yang.gen.v1.gnpy.gnpy.api.rev220221.Request;
12 import org.opendaylight.yang.gen.v1.gnpy.path.rev220615.Result;
15 public interface GnpyConsumer {
18 * Check if api is available or not.
19 * @return true os available, false otherwise.
21 boolean isAvailable();
24 * Path computation request.
25 * @param request GnpyApi.
26 * @return Result the result of pat computation.
28 Result computePaths(Request request);