/* * Copyright © 2017 AT&T and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.transportpce.olm.power; import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.olm.rev170418.ServicePowerSetupInput; import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.olm.rev170418.ServicePowerTurndownInput; public interface PowerMgmt { /** * This methods measures power requirement for turning up a WL * from the Spanloss at OTS transmit direction and update * roadm-connection target-output-power. * * @param input * Input parameter from the olm servicePowerSetup rpc * * @return true/false based on status of operation. */ Boolean setPower(ServicePowerSetupInput input); /** * This methods turns down power a WL by performing * following steps: * *

* 1. Pull interfaces used in service and change * status to outOfService * *

* 2. For each of the ROADM node set target-output-power * to -60dbm, wait for 20 seconds, turn power mode to off * *

* 3. Turn down power in Z to A direction and A to Z * * @param input * Input parameter from the olm servicePowerTurndown rpc * * @return true/false based on status of operation */ Boolean powerTurnDown(ServicePowerTurndownInput input); }