ansible-collections / mellanox.onyx

onyx
GNU General Public License v3.0
10 stars 14 forks source link

onyx_interface module does not support link speeds faster than 100G #5

Open velomatt opened 4 years ago

velomatt commented 4 years ago
SUMMARY

The onyx_interface module does not support link speeds faster than 100G. The latest Onyx switches (SN3000, SN4000) support 200G or 400G link speed.

ISSUE TYPE
COMPONENT NAME

onyx_interface.py

ANSIBLE VERSION

Note: I am not currently using onyx_modules from collections / Galaxy, but I have checked the code in onyx_interface.py and verified the issue is still there as of today.

ansible 2.9.10
  config file = /home/xxxx/ansible.cfg
  configured module search path = ['/home/xxxx/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.6/site-packages/ansible
  executable location = /usr/local/bin/ansible
  python version = 3.6.8 (default, Apr  2 2020, 13:34:55) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
CONFIGURATION
DEFAULT_FORKS(/home/xxxx/ansible.cfg) = 10
DEFAULT_HOST_LIST(/home/xxxx/ansible.cfg) = ['/home/xxxx/hosts']
DEFAULT_STDOUT_CALLBACK(/home/xxxx/ansible.cfg) = yaml
RETRY_FILES_ENABLED(/home/xxxx/ansible.cfg) = False
OS / ENVIRONMENT

CentOS Linux release 7.4.1708 (Core

STEPS TO REPRODUCE
- name: Configure link speed for Eth1/1
  onyx_interface:
    name: Eth1/1
    speed: 200G
EXPECTED RESULTS

Interface should be configured.

ACTUAL RESULTS

Task failure.

failed: [x.x.x.x] => changed=false 
  interface: 1/1
  msg: 'value of speed must be one of: 1G, 10G, 25G, 40G, 50G, 56G, 100G, got: 200G
mariolenz commented 1 year ago

This collection is currently unmaintained, so nobody will work on your issue. See ansible-community/community-topics#136 for more information.

If you're interested in mainting this collection yourself, please read the maintainer guidelines and let us know if you want to take over on Matrix: #community:ansible.com or on irc.libera.chat: #ansible-community.