You can apply a number of different rewrite rules to MPLS packets.
For more information about how to configure statements at the [edit class-of-service] hierarchy level, see the JUNOS Class of Service Configuration Guide.
The following sections describe how you can apply rewrite rules to MPLS packets: