2 * Copyright © 2017 AT&T 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.transportpce.olm.power;
11 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.olm.rev170418.ServicePowerSetupInput;
12 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.olm.rev170418.ServicePowerTurndownInput;
14 public interface PowerMgmt {
17 * This methods measures power requirement for turning up a WL
18 * from the Spanloss at OTS transmit direction and update
19 * roadm-connection target-output-power.
22 * Input parameter from the olm servicePowerSetup rpc
24 * @return true/false based on status of operation.
26 Boolean setPower(ServicePowerSetupInput input);
29 * This methods turns down power a WL by performing
33 * 1. Pull interfaces used in service and change
34 * status to outOfService
37 * 2. For each of the ROADM node set target-output-power
38 * to -60dbm, wait for 20 seconds, turn power mode to off
41 * 3. Turn down power in Z to A direction and A to Z
44 * Input parameter from the olm servicePowerTurndown rpc
46 * @return true/false based on status of operation
48 Boolean powerTurnDown(ServicePowerTurndownInput input);