First – MPLS support is available from OVS v1.11 onward. Second – MPLS only works in userspace, so you need to create a bridge as follows:
ovs-vsctl set bridge br-ex datapath_type=netdev Third – the action would also need to set the MPLS label, as follows: actions=push_mpls:0x8847,set_mpls_label:1000011,output:2 Steven From: "Rod N. Melton" <[email protected]<mailto:[email protected]>> Date: Wednesday, June 18, 2014 at 1:52 PM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: [ovs-discuss] add-flow for MPLS? I am using openvswitch 1.9.0 with mininet and would like to use ovs-ofctl to add flow rules which math on incoming MPLS labels and also add/remove MPLS labels on outgoing packets. When I use MPLS related match/action, I get an error: sudo ovs-ofctl add-flow e1 in_port=1,idle_timeout=0,icmp,nw_dst=10.0.0.2,actions=push_mpls:0x8847,output:2 ovs-ofctl: Unknown action: push_mpls I see MPLS is supported in the documentation at http://openvswitch.org/cgi-bin/ovsman.cgi?page=utilities%2Fovs-ofctl.8 but it doesn't work in the version I have. Any idea on how to get MPLS to work with ovs-ofctl add-flow? Thanks, Rod _______________________________________________ discuss mailing list [email protected] http://openvswitch.org/mailman/listinfo/discuss
