Can you try this command for MPLS swap operation? I tried this with ovs-1.11

ovs-ofctl add-flow br0
in_port=1,dl_type=0x8847,dl_src=00:00:00:00:01:01,dl_dst=00:00:00:00:01:02,dl_vlan=1,mpls_label=10,actions=set_field:100-\>mpls_label,output:2

Vasu

Sent from my iPad

On Oct 10, 2013, at 6:29 AM, deepak salaria <[email protected]>
wrote:

Thanks Nick for the reply.

I will check this Nick and will let you inform whether this worked or
not.But according to the man page of ovs-ofctl push and pop actions both
take ether-type as an arguement rather than an integer value.Please correct
me if i am wrong.

Hoping for a positive reply from your side.

Regards

Deepak


On Wed, Oct 9, 2013 at 12:59 PM, Nicholas Bastin <[email protected]>wrote:

> On Wed, Oct 9, 2013 at 3:25 AM, deepak salaria <
> [email protected]> wrote:
>
>> Basically i want to swipe the default value of label that ovs pushes i.e.
>> 0 to the value i want.For e.g. i am using the following setup:
>>
>> 1. Using three ovs switches
>> 2. The first one pushes the mpls header with default mpls label 0 by
>> using push_mpls action.
>> 3. The second one swipes the mpls label 0 to a particular value say 100.
>> 4. The third one removes the mpls header from the ipv4 packet which can
>> be done by the pop_mpls action.
>>
>> So Ben,can you please guide me through which i can change or swipe the
>> value of the mpls label in the 3rd step to the desired value i want.
>>
>
> You need to pop the bottom label and push a new one with the value of 100
> (which is what a mythical "set_mpls_label" action would have to do anyhow,
> on most hardware).
>
> --
> Nick
>

_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to