On Wed, 14 Nov 2018 08:36:52 +0900,
michael johnson wrote:
> I want to modify a packet header field MPLS LABEL by adding a constant to
> it. Openflow 1.3 supports "set field" action by which we can assign a new
> value to a packet header. But I am not able to find any way to add a
> constant to an existing value of a packet header.
>  One direction which I can think of is to copy the content of MPLS LABEL
> field to the metadata field supported by OpenFlow 1.3 and then do an add
> operation on the metadata field. But I do not know if this is possible or
> not.
> Another direction I can think is to pop the MPLS header, add the constant
> to MPLS LABEL field  and then push the modified MPLS header. Is this
> possible?

You can match on a specific MPLS label value and use pop_mpls and
push_mpls actions, but I don't think it is possible to do arithmetics
with flow entries (except for MPLS TTL).

--
IWAMOTO Toshihiro


_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to