Parses crm show commands to gather facts on CRM.
def test_fun(duthosts, rand_one_dut_hostname):
duthost = duthosts[rand_one_dut_hostname]
crm_facts = duthost.get_crm_facts()
This method takes no arguments
Returns a dictionary with gather CRM facts. The dictionary hierarchy is described below, with each indentation describing a sub-dictionary:
acl_group- Lists of dictionaries, one for each ACL group. The dicitonaries contain information on the groupresource name- resource name of groupbind pointavailable countused countstage- INGRESS or EGRESS
acl_table- List of dictionaries, one for each ACL table. THe dicitonaries contain info on the tabletable_id- id for the ACL tableresource name- resource name for tableused countavailable count
thresholds- Dictionary that maps route names to their thresholds{ROUTE_NAME}- dictionary that provides info on thresholds for given routehigh- high end thresholdlow- low end thresholdtype- type of threshold
resources- Dictionary describing resources for routes{ROUTE_NAME}- Dictionary describing resources for provided routeavailableused
polling_interval- How often polling occured