SD-WAN

 View Only
  • 1.  MPLS tagging using SDN controller

    Posted Dec 11, 2013 06:31 AM

    From the REST API guide it is not clear how to insert MPLS tags while inserting the flows into switches. The group stats shows the capabilities. So what is the json format for inserting the MPLS tag in the flow and where o do it



  • 2.  RE: MPLS tagging using SDN controller

    Posted Jan 07, 2014 06:35 AM

    json models  can be found at  https://<SDN_Controller_IP>:8443/sdn/v2.0/models   

     

     

    Add a flow  -  (you can take help from http://h30499.www3.hp.com/t5/SDN-Development/Flow-creation-via-REST-API/td-p/6197697#.UsvhPPtNzKh  )

     

    POST /sdn/v2.0/of/datapaths/{dpid}/flows

     

    Sample request for applying MPLS tag push action to the packet :

    {"flow": {

    "priority": 30000,

    "table_id": 200,

    "idle_timeout": 60,

    "match": [

    {"ipv4_src": "10.0.0.1"},

    {"ipv4_dst": "10.0.0.22"},

    {"ip_proto": "tcp"},

    {"eth_type": "ipv4"},

    {"tcp_dst": "80"}

    ],

    "instructions": [

    {"apply_actions": [

    {"push_mpls" : "mpls_u"}

    ]

    }

    ]

    }}

     

    Hope this helps.



  • 3.  RE: MPLS tagging using SDN controller

    Posted Jan 30, 2014 07:12 AM

    Hello Raghuram,

     

     

    Just following up to see if the previous post answers your query. Please feel free to reply incase you have more questions around the same topic or open a new thread if new  topic.

     

    If you feel we have answered your question, please do let us know by marking this response as an 'accepted solution’.

     

    Thanks

    Sukar

    HP SDN Team