SD-WAN

 View Only
last person joined: 3 days ago 

Forum to discuss HPE Aruba EdgeConnect SD-WAN and SD-Branch solutions. This includes SD-WAN Orchestration WAN edge network functions - routing, security, zone-based firewall, segmentation and WAN optimization, micro-branch solutions, best practics, and third-party integrations. All things SD-WAN!
Expand all | Collapse all

Flow creation via REST API

This thread has been viewed 0 times
  • 1.  Flow creation via REST API

    Posted Sep 09, 2013 11:21 AM

    Hi,

    I'm writing an app which collaborates with the controller via REST API.

    My app creates some static flows via the controller.

    I assume that I should do that using 'POST /of/datapaths/{dpid}/flows' API.

    However, I couldn't find the schema of the flowJson data which I should post to the controller.

     

    Can anyone direct me to the schema?

     

    Thanks,

     



  • 2.  RE: Flow creation via REST API

    Posted Sep 11, 2013 08:10 PM

    The json schema for all REST API commands is available via RSDoc.  Enter the following URL to access the json information.  Be sure the controller is running.

     

    https://<controller_IP>:8443/sdn/v2.0/models

    Replace <controller_IP> with the IP address of your controller.

     

    This will display the json models for all REST API commands.

     

    I highly recommend you use google Chrome and install the jsonview extension.  This will format the json data so it is readable.  If you don’t install jsonview, it will not be formatted and will be displayed as one very long record.  Below are the steps to install the jsonview extension:

     

    -        Start google Chrome

    -        Click setting in upper right corner

    -        Select tools

    -        Select Extensions

    -        Select "get more extensions"

    -        Search of json

    -        Install jsonview


    #jsonview
    #RSDoc
    #restapi


  • 3.  RE: Flow creation via REST API

    Posted Sep 12, 2013 12:04 PM

    JSONView is available for Firefox also and works quite well.


    #firefox


  • 4.  RE: Flow creation via REST API

    Posted Sep 11, 2013 08:52 PM

    You should find what you need in the new "SDN Controller REST API.pdf" which has been included as part of the version 1.14.0 release.



  • 5.  RE: Flow creation via REST API

    Posted Sep 12, 2013 12:40 PM
    The links within the PDF refer to https://genesis.americas.hpqcorp.net/ which is inaccessible from my network.


  • 6.  RE: Flow creation via REST API

    Posted Sep 20, 2013 02:11 PM

    I put a new version of the REST API document on the FTP site that does not contain links to websites.  The link in the document now points to other section within the same document.  The file name is "HP VAN SDN Controller REST API.pdf".



  • 7.  RE: Flow creation via REST API

    Posted Sep 29, 2013 06:13 AM
    Thanks!


  • 8.  RE: Flow creation via REST API

    Posted Nov 07, 2013 07:10 AM

    @sdean wrote:

    I put a new version of the REST API document on the FTP site that does not contain links to websites.  The link in the document now points to other section within the same document.  The file name is "HP VAN SDN Controller REST API.pdf".


    Hi,

     

    It seems there isn't a document in the FTP folder with the specific file name you mentioned at all. I've tried Ctrl+F5 refresh too.

     

    At the same time, it seems that the document with the file name of "SDN Controller REST API.pdf" is corrupted. At least my Adobe Reader cannot open it.

     

    Janne



  • 9.  RE: Flow creation via REST API

    Posted Nov 11, 2013 06:12 AM
    @jmikola :

    Can find some resources SDN Dev Cente's Resources Corner, "REST API and Security"

    Inlcuding one sample json for creating flow ( picked from the above resource )

    {
    "flow": {
    "priority": 30000,
    "idle_timeout": 60,
    "match": [
    {"eth_type": "ipv4"},
    {"ipv4_src": "10.0.0.1"},
    {"ipv4_dst": "10.0.0.22"},
    {"ip_proto": "tcp"},
    {"tcp_dst": "80"}
    ],
    "actions": [{"output": 6}]
    }
    }

    Hope that helps

    -J

    ps: The FTP site is probably accessible to select beta audience, as per what can be made out from other posts in this forum....?