openBackhaul / AirInterfacePowerSaver

Pranay's first Application on the MW SDN Controller
Apache License 2.0
1 stars 1 forks source link

To implement the service /v1/reactivate-transmitters-of-link #89

Closed PrathibaJee closed 6 months ago

PrathibaJee commented 7 months ago

For example , a map shall be included to temporarily maintained in a global datastore, and the generated request-id and the requestor details shall be stored,

linkTXReactivationRequestMap // to store and map the generated request-id to the requestor details
linkTXReactivationRequestMap.set(“main request-id” , {“requestor-ip”,”port”,”callback url”}}

After responding with the request-id to the requestor , process the following callbacks,

Read the power saving status of the Link

Find the uuids of the air-interfaces involved in the link

If the uuids of the air-interfaces are found then proceed to "Switch ON both the transmitters" else "Inform about failure in Switching ON both the transmitters" and exit

Switch ON both the transmitters

perform the following callback twice to switch ON the transmitter in both the endpoints ,

If both the transmitters are switchedON then

else if one(or both) of the is not switchedON then

Inform about failure in Switching ON both the transmitters

In the above mentioned callbacks , is there is a problem(apart from the one mentioned in the section "Switch ON both the transmitters"_ that prevents in switching ON the transmitter back then ,

:exclamation: :exclamation: After sending the final result to the requestor , delete the details of the "client" from the linkTXReactivationRequestMap inorder to not maintain the state of the request