You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OmniOS CE r151034t (Illumos); target host Python is 3.7.5.
STEPS TO REPRODUCE
Running the following playbook targeting an Illumos host (OmniOS CE):
---
- name: 'create a vnic on vlan 23'hosts: allbecome: truetasks:
- dladm_vnic:
name: vnic0link: igb0vlan: 23vars:
ansible_python_interpreter: '/usr/bin/python3'
EXPECTED RESULTS
Expect vnic0 to be created over igb0 with on VLAN 23 ("VID" in Solaris parlance).
ACTUAL RESULTS
Traceback (most recent call last):
File "/export/home/jbronn/.ansible/tmp/ansible-tmp-1602200001.221015-1447844-199957029738156/AnsiballZ_dladm_vnic.py", line 102, in <module>
_ansiballz_main()
File "/export/home/jbronn/.ansible/tmp/ansible-tmp-1602200001.221015-1447844-199957029738156/AnsiballZ_dladm_vnic.py", line 94, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/export/home/jbronn/.ansible/tmp/ansible-tmp-1602200001.221015-1447844-199957029738156/AnsiballZ_dladm_vnic.py", line 40, in invoke_module
runpy.run_module(mod_name='ansible_collections.community.network.plugins.modules.dladm_vnic', init_globals=None, run_name='__main__', alter_sys=True)
File "/usr/lib/python3.7/runpy.py", line 205, in run_module
return _run_module_code(code, init_globals, run_name, mod_spec)
File "/usr/lib/python3.7/runpy.py", line 96, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/tmp/ansible_dladm_vnic_payload_pf9t6364/ansible_dladm_vnic_payload.zip/ansible_collections/community/network/plugins/modules/dladm_vnic.py", line 260, in <module>
File "/tmp/ansible_dladm_vnic_payload_pf9t6364/ansible_dladm_vnic_payload.zip/ansible_collections/community/network/plugins/modules/dladm_vnic.py", line 221, in main
File "/tmp/ansible_dladm_vnic_payload_pf9t6364/ansible_dladm_vnic_payload.zip/ansible_collections/community/network/plugins/modules/dladm_vnic.py", line 183, in is_valid_vlan_id
TypeError: '<=' not supported between instances of 'int' and 'str'
The text was updated successfully, but these errors were encountered:
SUMMARY
Errors trying to set VLAN in
dladm_vnic
module.ISSUE TYPE
COMPONENT NAME
dladm_vnic
ANSIBLE VERSION
CONFIGURATION
N/A
OS / ENVIRONMENT
OmniOS CE r151034t (Illumos); target host Python is 3.7.5.
STEPS TO REPRODUCE
Running the following playbook targeting an Illumos host (OmniOS CE):
EXPECTED RESULTS
Expect
vnic0
to be created overigb0
with on VLAN 23 ("VID" in Solaris parlance).ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: