Since the REST client module in application pattern is designed to interact with other applications in the SDN ApplicationLayer , a separate REST client for interacting with the controller shall be implemented.
[x] In the services folder , create a folder called OpenDayLightAdapter and create a file called RESTClient.js
This ODL REST client should,
[x] receive the operation-name , pathParameters, queryparameters as input
[ ] interact with the controller by using the tcp-client information provided for the OpenDayLight
[ ] include “Authorization header” from the encrypted-odl-key.json file
(Note : file name shall not be hardcoded and shall be taken from the file-profile with file-identifier EncryptedOdlKey)
[ ] Send the response object back to the calling function
Since the REST client module in application pattern is designed to interact with other applications in the SDN ApplicationLayer , a separate REST client for interacting with the controller shall be implemented.
This ODL REST client should,