Skip to content
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

Merged
merged 3 commits into from
Sep 5, 2023

Conversation

BenjaminLudwigSAP
Copy link
Collaborator

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 the get_esd_entities function to include translation of the lbaas_fastl4 parameter into the AS3 profilel4 parameter (for ServiceL4 class).

Copy link
Collaborator

@notandy notandy left a 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)

@BenjaminLudwigSAP
Copy link
Collaborator Author

Good find, @notandy, thank you!

@notandy notandy self-requested a review August 31, 2023 14:22
Comment on lines 82 to 83
else:
service_args['profileTCP'] = 'normal'
Copy link
Collaborator

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)
Copy link
Collaborator

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)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

profileL4

@notandy notandy self-requested a review September 5, 2023 17:03
@notandy notandy merged commit ae9e7a6 into stable/yoga-m3 Sep 5, 2023
3 checks passed
@notandy notandy deleted the fastl4_profile branch September 5, 2023 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants