VIAVI TestCenter-HLTAPI- MPLS header along with VLAN headers in HLTAPI

Knowledge Base - FAQ

VIAVI TestCenter-HLTAPI- MPLS header along with VLAN headers in HLTAPI
MPLS headers along with VLAN headers can be configured in HLTAPI. This feature is available from HLTAPI version 4.15 To achieve this while configuring streamblock using sth::traffic_config, set l2_encap to ethernet_ii_vlan_mpls Please refer to below code snippet to do the same: sth::traffic_config -mode create\                    -port_handle $VIAVI_tx \                    -l2_encap ethernet_ii_vlan_mpls \                    -vlan_id 100 \                    -vlan_id_mode fixed \                   -vlan_id_count 1 \                   -rate_percent $rate \                   -mpls_labels {1 3 7} \                   -mpls_labels_mode list \                   -mpls_cos 001\                   -mpls_ttl 60 \                   -mpls_labels_count 1000