Multiple count actions in a flow ruleΒΆ
Test multiple count actions in a flow rule
Test flow rule with multiple count actions.
Initialize EAL
Enter isolated mode if need be
Start the device
Prepare IUT and TST sides for transmit or receive
Make flow rule attributes as specified in parameters
Make flow rule pattern and prepare matching template
Prepare addresses for the matching and non-matching templates
Make flow rule actions "count" from test parameters
Make flow rule action "drop"
Validate and create the flow rule
Enable promiscuous mode if need be
Ensure that interface is UP on Tester side
Transmit one packet with prepared match template. Check that the packet was dropped.
Transmit and receive packets with dissimilar templates. Check received packets (if it is not ingress isolated).
Check the counters hits and bytes
Parameters:
ingress |
Test flow rule ingress if |
promisc |
Test with promiscuous mode enabled if |
isolated |
Test with isolated flow mode if |
transfer |
Set transfer attribute to flow rule if |
flow_rule_pattern |
Flow rule pattern |
counter_ids |
List of IDs of counters to create for the flow rule |