-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_check_fpc_resource_monitor.yml
executable file
·19 lines (17 loc) · 1.24 KB
/
test_check_fpc_resource_monitor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#################################################################
# Checks Next-Hop and filter memory utilization
#################################################################
tests_include:
- check_fpc_pfe_mem
check_fpc_pfe_mem:
- command: show system resource-monitor fpc
- iterate:
xpath: resource-monitor-fpc-information-summary/pfe-num
id: resource-monitor-fpc-information-summary/pfe-num
tests:
- is-gt: following-sibling::free-nh-memory-rsmon-percent[1]/text(), 20
info: "PASSED! FPC slot {{pre['../fpc-slot']}} PFE {{post['.']}} free NH mem is {{post['following-sibling::free-nh-memory-rsmon-percent[1]/text()']}}%"
err: "FAILED! FPC slot {{pre['../fpc-slot']}} PFE {{post['.']}} free NH mem is {{post['following-sibling::free-nh-memory-rsmon-percent[1]/text()']}}%"
- is-gt: following-sibling::free-filter-memory-rsmon-percent[1]/text(), 20
info: "PASSED! FPC slot {{pre['../fpc-slot']}} PFE {{post['.']}} free Filter mem is {{post['following-sibling::free-filter-memory-rsmon-percent[1]/text()']}}%"
err: "FAILED! FPC slot {{pre['../fpc-slot']}} PFE {{post['.']}} free Filter mem is {{post['following-sibling::free-filter-memory-rsmon-percent[1]/text()']}}%"