Ask Your Question
0

Adding Flows in Opendaylight for POP MPLS and Resubmit

asked 2015-02-02 23:05:21 -0700

joshua gravatar image

Hi,

I have to add a flow in Opendaylight + mininet+ovs

The flow looks like this

sudo ovs-ofctl -O OpenFlow13 add-flow $S1 "table=1,inport=$S1ETH2,ethtype=0x8847,mplsbos=0,actions=pop_mpls:0x8847,resubmit(,1)"

How do I write XML for this. I looked at examples in openflowplugin. But there is no one for it

It requires Poping up the MPLS and then resubmitting it back to table 1

Please help

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-02-02 23:49:42 -0700

Vishal Thapar gravatar image

updated 2015-02-05 02:09:12 -0700

Refer this link: https://wiki.opendaylight.org/view/EditingOpenDaylightOpenFlowPlugin:EndtoEndFlows:Example_Flows

Refer section 2.23 for POP MPLS. resubmit is the term OVS uses for Output:TABLE action which has an example in section 3.1.1 of above link.

UPDATE:

Try something like this:

<instructions>
 <order>0</order>
 <apply-actions>
  <action>
   <pop-mpls-action>
   <ethernet-type>2048</ethernet-type>
   </pop-mpls-action>
  </action>
 </apply-actions>
 <order>1</order>
 <go-to-table>
  <table_id>1</table_id>
 </go-to-table>
</instructions>

I am not familiar with XML syntax and use of order etc. so this may not work as is, but you should get an idea of how and where to add go-to-table.

edit flag offensive delete publish link more

Comments

Hi, I get a flow entry like this when I combine both. cookie=0x379, duration=5.214s, table=1, n_packets=0, n_bytes=0, send_flow_rem mpls,in_port=2,mpls_bos=0 actions=pop_mpls:0x8847,TABLE Not going back to table1

joshua ( 2015-02-04 23:25:37 -0700 )edit

I was mistaken, goto table is an instruction not an action. I've used it in my code but not through JSON or XML. Will update the answer once I have the correct working solution

Vishal Thapar ( 2015-02-05 01:05:45 -0700 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2015-02-02 23:05:21 -0700

Seen: 368 times

Last updated: Feb 05 '15