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/switch-redundant-transmitter-pair-off #91

Closed PrathibaJee closed 5 months ago

PrathibaJee commented 7 months ago

For example , two maps shall be included to temporarily maintained in a global datastore,

    switchOffTXPairRequestMap // to store and map the generated request-id to the requestor details
    switchOffTXPairTransactionMap // to store and map the consequent callback’s request-id to the request-id of the initial request

        switchOffTXPairRequestMap.set(“main request-id” , {“requestor-ip”,”port”,”callback url”}} //The generated request-id and the requestor details shall be stored, 

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

Getting information about the parallel links

If a parallel link is available for the provided link-id , then the provided link's transmitters shall be switchedOFF so that power will be saved. So , to check whether a parallel link is available ,

:information_source: Further , if a parallel link is available , then AIPS::/v1/provide-transmitter-status-of-parallel-links will inform AIPS via the API AIPS::/v1/receive-power-saving-activation-status.