-
Notifications
You must be signed in to change notification settings - Fork 90
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
icx_vlan - add support for stacked switches #279
base: main
Are you sure you want to change the base?
icx_vlan - add support for stacked switches #279
Conversation
@ratneshnagori hi, thanks for the PR! Could you please:
Thank you! |
@Andersson007 Hi, I am trying to fix the failures I see in unit tests. However, I have noticed that the icx_vlan.py will fail if we have multiple range of interfaces under a vlan. On a ruckus switch, you can have multiple ranges of interfaces under same vlan -
This will result into incorrecr value of high coming from function extract_list_from_interface(interface) - https://github.com/ansible-collections/community.network/blob/main/plugins/modules/network/icx/icx_vlan.py#L371 For the above config, when I ran function, it gave me output as low = 14 and high = 15. Value of low is correct but not high. Regex here - https://github.com/ansible-collections/community.network/blob/main/plugins/modules/network/icx/icx_vlan.py#L374, only looks for first occurrence of the pattern. Let me know your thoughts. I will work towards getting the correct result from the function. |
@ratneshnagori thanks for working on this! I have an idea but maybe it's not applicable and stupid. So if it's not applicable, feel free to ignore. Thank you |
hi @ratneshnagori - I just pushed a commit to revert some of the style differences to make the diff easier to read. However, feel free to remove it. :) |
hi @ratneshnagori, are you still working on this? |
SUMMARY
icx_vlan.py at the moment is used to manage VLANs on Ruckus ICX 7000 series switches.
Currently, it doesn't support vlan management when switches are stacked into a single unit.
This pull request is to enable icx_vlan.py to manage vlans when we have the stack of switches.
ISSUE TYPE
COMPONENT NAME
icx_vlan.py - changes to enable module to manage vlans on stacked switches.
ADDITIONAL INFORMATION
The problem is because of hardcoding of STACK/MODULE to 1/1 at below lines -
community.network/plugins/modules/network/icx/icx_vlan.py
Line 537 in fa9911d
community.network/plugins/modules/network/icx/icx_vlan.py
Line 560 in fa9911d
community.network/plugins/modules/network/icx/icx_vlan.py
Line 618 in fa9911d
community.network/plugins/modules/network/icx/icx_vlan.py
Line 626 in fa9911d