API Guide

c. Specify the allowed VLANs on the trunk port.
OS10 (conf-if-eth1/1/1)# switchport trunk allowed vlan 55
d. Apply the network-qos type policy-map to the interface.
OS10 (conf-if-eth1/1/1)# service-policy input type network-qos policy_pfcdot1p3
e. Apply the queuing policy to egress traffic on the interface.
OS10 (conf-if-eth1/1/1)# service-policy output type queuing policy_2Q
f. Enable ETS on the interface.
OS10 (conf-if-eth1/1/1)# ets mode on
g. Apply the qos-map for ETS configurations on the interface.
OS10 (conf-if-eth1/1/1)# qos-map traffic-class 2Q
h. Enable PFC on the interface.
OS10 (conf-if-eth1/1/1)# priority-flow-control mode on
For RoCEv2:
a. Enter INTERFACE mode and enter the no shutdown command.
OS10# configure terminal
OS10 (config)# interface ethernet 1/1/1
OS10 (conf-if-eth1/1/1)# no shutdown
b. Apply the network-qos type policy-map to the interface.
OS10 (conf-if-eth1/1/1)# service-policy input type network-qos policy_pfcdot1p3
c. Apply the queuing policy to egress traffic on the interface.
OS10 (conf-if-eth1/1/1)# service-policy output type queuing policy_2Q
d. Enable ETS on the interface.
OS10 (conf-if-eth1/1/1)# ets mode on
e. Apply the qos-map for ETS configurations on the interface.
OS10 (conf-if-eth1/1/1)# qos-map traffic-class 2Q
f. Enable PFC on the interface.
OS10 (conf-if-eth1/1/1)# priority-flow-control mode on
View configuration and statistics
Use the following show commands to view the configuration and statistics:
To view the PFC and ETS configuration details at the interface level, use the show qos interface command:
OS10# show qos interface ethernet 1/1/4
To view the buffer allocation for the ingress interface, use the show qos ingress buffers command:
OS10# show qos ingress buffers interface ethernet 1/1/4
To view the buffer utilization at the ingress interface, use the show qos ingress buffer-stats command:
OS10# show qos ingress buffer-stats interface ethernet 1/1/4
To view the buffer allocation for the egress interface, use the show qos egress buffers command:
OS10# show qos egress buffers interface ethernet 1/1/4
1214
Quality of service