+
+ /**
+ * This method is the implementation of the 'service-power-trundown' RESTCONF service, which
+ * is one of the external APIs into the olm application.
+ *
+ * <p>
+ * 1. service-power-turndown: This operation performs following steps:
+ * Step1: For each TP within Node sets interface outofservice .
+ * Step2: For each roam-connection sets power to -60dbm
+ * Step3: Turns power mode off
+ *
+ * <p>
+ * The signature for this method was generated by yang tools from the
+ * renderer API model.
+ *
+ * @param input
+ * Input parameter from the olm yang model
+ * Input will contain nodeId and termination point
+ *
+ * @return Result of the request
+ */
+ @Override
+ public Future<RpcResult<ServicePowerTurndownOutput>> servicePowerTurndown(ServicePowerTurndownInput input) {
+ ServicePowerTurndownOutputBuilder output = new ServicePowerTurndownOutputBuilder();
+ if (new PowerMgmt(db,mps).powerTurnDown(input)) {
+ output.setResult("Success");
+ } else {
+ output.setResult("Failed");
+ }
+ return RpcResultBuilder.success(output).buildFuture();
+ }