utilization_test - bstoll/featureprofiles GitHub Wiki
Test used-threshold-upper configuration and telemetry for hardware resources.
- 
Connect ATE port-1 to DUT port-1, and ATE port-2 to DUT port-2.
 - 
Establish BGP session between ATE Port1 --- DUT Port1.
 - 
Get initial utilization percentages (free/(used+free) * 100) for the FIB resource in the system.
 - 
Configure DUT used-threshold-upper to 60% and used-threshold-upper-clear to 50%.
- The configuration must be done at the system level such that the percentages are reflected in all components using the resource.
 
 - 
Inject unique BGP routes such that FIB utilization increases by at-least 1% (250000 routes should increase utilization by at-least 1% for Arista/Cisco/Juniper/Nokia).
 - 
Get utilization percentages again and validate increase in utilization.
 - 
Teardown BGP session such that routes are removed from FIB.
 - 
Get utilization percentages again and validate decrease in utilization.
 
- /system/utilization/resources/resource/config/name
 - /system/utilization/resources/resource/config/used-threshold-upper
 - /system/utilization/resources/resource/config/used-threshold-upper-clear
 
- /system/utilization/resources/resource/state/name
 - /system/utilization/resources/resource/state/used-threshold-upper
 - /system/utilization/resources/resource/state/used-threshold-upper-clear
 - /components/component/integrated_circuit/utilization/resources/resource/state/name
 - /components/component/integrated_circuit/utilization/resources/resource/state/used
 - /components/component/integrated_circuit/utilization/resources/resource/state/free
 - /components/component/integrated_circuit/utilization/resources/resource/state/used-threshold-upper
 - /components/component/integrated_circuit/utilization/resources/resource/state/used-threshold-upper-clear