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

LAG Interface Hash Mode #124

Open
wazoo opened this issue Jan 12, 2025 · 3 comments
Open

LAG Interface Hash Mode #124

wazoo opened this issue Jan 12, 2025 · 3 comments
Labels
enhancement New feature or request

Comments

@wazoo
Copy link

wazoo commented Jan 12, 2025

I can't seem to figure out how to set the hash mode (eg: hash l4-src-dst ) on a LAG interface using this collection, is it missing?

If so, is that because its missing from pyaoscx as well? I want to open a feature request in the right place so if that is the right place I will do that otherwise please consider this a feature request here.

@alagoutte
Copy link
Contributor

Hi Ben,

Yes, this feature missing (like a lot of other missing feature...)

You can also open an issue on pyaoscx

for the moment, the solution is to use aoscx_config

@wazoo
Copy link
Author

wazoo commented Jan 14, 2025

I was trying that the other day and I couldn't get it to work right, I was trying various incantations of this:

- name: Configure LAG Hashing Mode
  arubanetworks.aoscx.aoscx_config:
    parents:
      - interface lag {{ item.lag_id }}
    before:
      - config
    lines:
      - "hash {{ item.hash_mode | default('l3-src-dst')}}"
  loop: "{{ switch_lags }}"

I am not sure if anyone has a working example, still tinkering with it but just in case! I also opened an issue on the pyaoscx project to get it added there if anyone is curious, it seemed to be missing when looking at their code.

@tchiapuziowong
Copy link
Member

@wazoo what error do you receive when you use aoscx_config ?

@tchiapuziowong tchiapuziowong added the enhancement New feature or request label Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants