[ovs-discuss] Setting MPLS label while adding a flow

Madhusudhan Kandadai madhusudhan.opendaylight at yahoo.com
Thu Feb 6 22:04:26 UTC 2014


Thanks Vasu. It worked when I program the flows from OpenDaylight to OVS2.0 and I could see the flows as well in the switch.

But,when I try to replicate the same thing from OpenDaylight to OVS1.12 and I am not able to see the flows in the switch.

Have you seen this issue before? 
 
Thanks,

Madhusudhan



On Thursday, February 6, 2014 9:46 AM, Vasu Dasari <vdasari at gmail.com> wrote:
 
Can you try this?
sudo ovs-ofctl add-flow br0 \
    in_port=13,dl_dst=00:00:00:00:00:13,dl_type=0x800,nw_dst=11.1.1.0/24,dl_vlan=201,actions=push_mpls:0x8847,set_field:100-\>mpls_label,mod_vlan_vid:20,mod_dl_src:00:00:00:00:00:14,mod_dl_dst:00:00:00:00:00:04,output:14




On Wed, Feb 5, 2014 at 7:41 PM, Madhusudhan Kandadai <madhusudhan.opendaylight at yahoo.com> wrote:

Hello,
>
>
>I am not sure whether this question has resolved. If you think this is the repeated question, I appreciate if you can point me to the right person.
>
>
>I actually trying to add a flow for MPLS (Push MPLS type and set MPLS label)
>
>
>sudo ovs-ofctl add-flow s2 in_port=1,dl_type=0x0800,dl_src=22:11:11:11:11:11,dl_dst=22:00:00:00:00:00,actions=push_mpls:0x8847,set_mpls_label:10,output:2 -O OpenFlow13
>
>
>
>It is throwing me an error: 
>ovs-ofctl: Unknown action: set_mpls_label
>
>
>
>But, I try to add a flow without using set_mpls_label:10, i.e.,
>
>
>sudo ovs-ofctl add-flow s2 in_port=1,dl_type=0x0800,dl_src=22:11:11:11:11:11,dl_dst=22:00:00:00:00:00,actions=push_mpls:0x8847,output:2 -O OpenFlow13
>
>
>sudo ovs-ofctl dump-flows s2 -O OpenFlow13OFPST_FLOW reply (OF1.3) (xid=0x2):
> cookie=0x0, duration=8.422s, table=0, n_packets=0, n_bytes=0, ip,in_port=1,dl_src=22:11:11:11:11:11,dl_dst=22:00:00:00:00:00 actions=push_mpls:0x8847,output:2
>
>
>OVS version used here is :2.0
>
>
>Thanks,
>Madhusudhan
>_______________________________________________
>discuss mailing list
>discuss at openvswitch.org
>http://openvswitch.org/mailman/listinfo/discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20140206/3df8e0df/attachment.html>


More information about the discuss mailing list