Thanks Ben for the quick reply. Regarding your question that why i am using the *"in_port=1,dl_type=0x8847, actions=set_mpls_label=100,output=2"* Explanation is as follows:-
1. *in_port=1* means we push the rule on the port number 1 of the ovs. 2. *dl_type=0x8847* means the MPLS unicast Ethertype 0x8847. 3. *actions=set_mpls_label=100 *means set the label of mpls header to 100. 4. *output=2 *means we set the output port to port number 2. which means that the packets coming on the port 1 of the ovs bridge with ether-type mpls unicast should be forwarded to the port 2 of ovs with the mpls label set to 100. In the above rule we can also use dl_vlan, dl_src etc as a parameter to match the flow on the ovs instead of in_port=1. Please correct me if i am not able to understand your question or not able to give you the answer that you asked for. Basically I want to push an action to set the mpls label to 100 but when i am pushing the rule *actions=set_mpls_label=100 *i get the following error:unknown action set_mpls_label. so how can i set the mpls label to 100 in the mpls header? Hoping for a positive response from your side. Any help regarding this would be appreciated. ----- Regards Deepak On Mon, Oct 7, 2013 at 8:16 PM, Ben Pfaff <[email protected]> wrote: > On Mon, Oct 07, 2013 at 02:03:55PM +0530, deepak salaria wrote: > > ovs-ofctl add-flow br0 > > "in_port=1,dl_type=0x8847,actions=set_mpls_label=100,output=2" > > > > *then the ovs returns the follwing error:unknown action set_mpls_label* > > > > How can i enable set_mpls_label command in openvswitch-1.11.0? > > Can you explain why you think there should be one? The documentation > does not mention any such command. >
_______________________________________________ discuss mailing list [email protected] http://openvswitch.org/mailman/listinfo/discuss
