Ask is moving to Stack Overflow and! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode


Adding Flows in Opendaylight for POP MPLS and Resubmit

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

joshua gravatar image


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

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

Vishal Thapar gravatar image

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

Refer this link:

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.


Try something like this:


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


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

1 follower


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

Seen: 404 times

Last updated: Feb 05 '15