Severity Level: HIGH
Desciption: Can't l7policy delete the latest l7policy on load_balancer.
It is a degrade for previous change on virtual_port.py in acos-client. Previously aflex-scripts is in kwargs (as aflex-scripts) but now it is a named parameter (as aflex_scripts) in acos-client. And for backward compatible I add a check to use aflex-scripts in kwargs if aflex_scripts is not set. But didn't write it correctly. So, for empty list case it will match the condition and goes wrong.
Use 'if aflex_scripts is None' instead in condition check. So, for aflex_scripts = [] case, it will not match the condition.
[optional] just remove this condition and backward compatible.
Config Changes
This bug is not related to configuration
N/A
Test Cases
create l7policy
delete l7policy, and check the latest l7policy can be deleted on thunder and openstack.
Description
Severity Level: HIGH Desciption: Can't l7policy delete the latest l7policy on load_balancer.
It is a degrade for previous change on virtual_port.py in acos-client. Previously aflex-scripts is in kwargs (as aflex-scripts) but now it is a named parameter (as aflex_scripts) in acos-client. And for backward compatible I add a check to use aflex-scripts in kwargs if aflex_scripts is not set. But didn't write it correctly. So, for empty list case it will match the condition and goes wrong.
Jira Ticket
https://a10networks.atlassian.net/browse/STACK-1988
Technical Approach
Use 'if aflex_scripts is None' instead in condition check. So, for aflex_scripts = [] case, it will not match the condition. [optional] just remove this condition and backward compatible.
Config Changes
This bug is not related to configuration
Test Cases
Manual Testing