-
Notifications
You must be signed in to change notification settings - Fork 2
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
[as3restclient] Add fastL4 profile support to ESDs #235
Conversation
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.
Hrm, there is a possiblity of clashes due to the fallback check to TCP in case a TCP profile or irule has been defined (earlier). I think we should ensure to remove the L4 profile in this case.
(line 360-362)
Good find, @notandy, thank you! |
else: | ||
service_args['profileTCP'] = 'normal' |
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.
Not sure why I did it, but during testing I noticed that every ESD is disabling fastL4 because of this (the code for TCP fallback checks for a profileTCP)
Removing this else branch seems to work fine for me.
# FastL4 profiles | ||
profilel4 = esd.get('lbaas_fastl4', None) | ||
if profilel4 and servicetype == f5_const.SERVICE_L4: | ||
service_args['profilel4'] = as3.BigIP(profilel4) |
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.
It's profileL4
, not profilel4
(AS3 is case sensitive)
@@ -352,6 +361,9 @@ def is_http2(listener): | |||
service_args['iRules'] or 'profileTCP' in service_args): | |||
service_args['_servicetype'] = f5_const.SERVICE_TCP | |||
|
|||
# profilel4 is only used on ServiceL4, so remove it | |||
service_args.pop('profilel4', 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.
profileL4
sapcc/helm-charts#5305 introduces a fastL4 profile ESD that uses
lbaas_fastl4
key, which is treated as valid by F5PD, but not interpreted yet. This PR extends theget_esd_entities
function to include translation of thelbaas_fastl4
parameter into the AS3profilel4
parameter (forServiceL4
class).