Usually customer use qos-mode mapping gem-car in GPON ont-line profile, and mapping mode vlan or vlan-priority.
In my case, during GPON pre-sale testing customer wants to realize scheme with two flows in one VLAN with two dfferent priority - 0 and 5, and they wants to see how works QoS mechanism in our devices. They generate two 2,5 Gbits flows with 0 and 5 priority and wants to see, that flow with priority 5 have superior between flow with 0 priority.
For realize scheme with two flows i create new gpon-line profile with these settings:
ont-lineprofile gpon profile-id 10 profile-name "Flow-Test"
tcont 1 dba-profile-id 10
gem add 1 eth tcont 1
gem mapping 1 0 vlan 1001 priority 0
gem mapping 1 1 vlan 1001 priority 5
It means, that we use 1 gemport, but mapping it with different mapping index for priority 0 and 5.
After that we create service port for this gemport and ONT with unlimited traffic-table index 6 with priority policy Tag-In-Package:
service-port 1 vlan 1001 gpon 0/5/0 ont 1 gemport 1 multi-service user-vlan 1001 tag-transform translate inbound traffic-table index 6 outbound traffic-table index 6
That's all, during test we can see, that flow with priority 5 has superior between flow with 0 priority