-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Devlink functional tests #110
Conversation
...sTestbed/src/dent_os_testbed/test/test_suite/functional/devlink/test_devlink_single_block.py
Outdated
Show resolved
Hide resolved
...sTestbed/src/dent_os_testbed/test/test_suite/functional/devlink/test_devlink_single_block.py
Outdated
Show resolved
Hide resolved
DentOS_Framework/DentOsTestbed/src/dent_os_testbed/utils/test_utils/tc_flower_utils.py
Outdated
Show resolved
Hide resolved
eec6fae
to
db7e82e
Compare
@@ -116,5 +117,6 @@ | |||
'suite_functional_qos', | |||
'suite_functional_ipv4', | |||
'suite_functional_ipv6', | |||
'suite_functional_l1'] | |||
'suite_functional_l1', | |||
'suite_functional_devlink'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add comma at the end of line and move ] to next line. It will be easier to merge conflicts in future
Randomize applying rule by choosing src/dst field | ||
Args: | ||
tc_rule (dict): Dict with tc_rule | ||
rule_selectors (dict): Dict with rule selectros |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
selectors*
db7e82e
to
0970ac5
Compare
rule = {'action': {'trap': '', | ||
'police': {'rate': f'{policer_rate}bps', 'burst': policer_rate + 1000, | ||
'conform-exceed': '', 'drop': ''}}, | ||
'want_ip': True if traffic in ['l3', 'l4'] else False, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'want_ip': True if traffic in ['l3', 'l4'] else False, | |
'want_ip': traffic in ['l3', 'l4'], |
'want_ip': want_ip, | ||
'want_port': want_port, | ||
'want_tcp': choice([True, False]) if want_port else False, | ||
'want_vlan_ethtype': True if want_ip and want_vlan else False} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'want_vlan_ethtype': True if want_ip and want_vlan else False} | |
'want_vlan_ethtype': want_ip and want_vlan} |
@@ -126,14 +126,15 @@ async def tcutil_cleanup_tc_rules(dent_dev, swp_tgen_ports, swp_tc_rules): | |||
|
|||
|
|||
def tcutil_tc_rules_to_tgen_streams(swp_tc_rules, streams=None, start=0, cnt=None, | |||
frame_rate_pps=10, frame_size=256): | |||
frame_rate_pps=10, frame_size=256, frame_rate_type=None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
frame_rate_pps=10, frame_size=256, frame_rate_type=None): | |
frame_rate_pps=10, frame_size=256, frame_rate_type='pps_rate'): |
0970ac5
to
f121a61
Compare
Signed-off-by: Andriy Lozovyy <andriy.lozovyy@plvision.eu>
f121a61
to
fa7b9c4
Compare
Add Devlink functional test cases:
Depends on: #109