[ovs-discuss] Fwd: Fwd: MPLS in openvswitch

deepak salaria deepaksalaria1990 at gmail.com
Fri Oct 11 12:57:50 UTC 2013


Thanks Vasu for the help.

I tried the command you suggested me and i was able to swap the value of
the mpls label to the value specified in the command or to any desired
value i wanted.

Thanks again for the help.

Regards

Deepak


On Thu, Oct 10, 2013 at 4:03 PM, Vasu Dasari <vdasari at gmail.com> wrote:

> 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 <deepaksalaria1990 at gmail.com>
> 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 <nick.bastin at gmail.com>wrote:
>
>> On Wed, Oct 9, 2013 at 3:25 AM, deepak salaria <
>> deepaksalaria1990 at gmail.com> 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
> 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/20131011/73a694d2/attachment.html>


More information about the discuss mailing list