Software Defined Networking
1827496 Members
2692 Online
109965 Solutions
New Discussion

Re: MPLS tagging using SDN controller

 
raghuram369
Occasional Contributor

MPLS tagging using SDN controller

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 REPLIES 2
sdnindia
Trusted Contributor

Re: MPLS tagging using SDN controller

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.

Sukar
Occasional Advisor

Re: MPLS tagging using SDN controller

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