SD-WAN

 View Only
  • 1.  HP SDN Controller REST API Authorization failure

    Posted Feb 26, 2014 12:51 AM

    Hi,

     

    I have successfully installed and able to acces HP VAN SDN Controller version 2.0.0.4253.

     

    I tried connecting via REST API but gets "Connection refused" error. I tried using bith RESTPI Client addon as well as Curl.

     

    I checked the port 8080 via netstat and its active.

     

    Am I missing anything?

     

    Regards

     

    Atul



  • 2.  RE: HP SDN Controller REST API Authorization failure

    Posted Feb 26, 2014 07:27 AM

    Hi,

     

    Are you able to run this attached script?

     

    ps: please, change the CONTROLLER_IP variable if necessary.



  • 3.  RE: HP SDN Controller REST API Authorization failure

    Posted Feb 26, 2014 09:46 AM

    Yes the script runs , but output is general data. No token related information is recieved.

     

    However I tried using the link "https://10.204.254.93:8443/api" and it worked.

     

    Do you have sample Java code for initial authorization?

     

    Regards

     

    Atul



  • 4.  RE: HP SDN Controller REST API Authorization failure

    Posted Feb 26, 2014 12:37 PM

    I'm not sure what is your doubt. Do you need the authorization token to access the REST api from an external application?

     

    Take a look in this new shell script, and tell me if solved your problem.



  • 5.  RE: HP SDN Controller REST API Authorization failure

    Posted Feb 26, 2014 09:12 PM

    Hi,

     

    I am planning to write sample Java app using RESTAPI to get the shortest path between 2 nodes. I understand from the documentation that authorization is required before accessing the controller related details.

     

    Regards

     

    Atul