Я использую модуль linkagg.py в ansible. Я успешно создаю канал порта, но назначение интерфейсов приводит к ошибке ниже. Белос, есть моя пьеса. Не могли бы вы помочь мне с этой проблемой?
- name: create link aggregation group
eos_linkagg:
group: 104
state: present
- name: set link aggregation group to members
eos_linkagg:
group: 104
min_links: 2
mode: active
members:
- Ethernet1
- Ethernet2
The full traceback is:
Traceback (most recent call last):
File "/root/.ansible/tmp/ansible-local-39781sLXLRF/ansible-tmp-1572035876.93-230989551209124/AnsiballZ_eos_linkagg.py", line 114, in <module>
_ansiballz_main()
File "/root/.ansible/tmp/ansible-local-39781sLXLRF/ansible-tmp-1572035876.93-230989551209124/AnsiballZ_eos_linkagg.py", line 106, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/root/.ansible/tmp/ansible-local-39781sLXLRF/ansible-tmp-1572035876.93-230989551209124/AnsiballZ_eos_linkagg.py", line 49, in invoke_module
imp.load_module('__main__', mod, module, MOD_DESC)
File "/usr/lib64/python3.6/imp.py", line 235, in load_module
return load_source(name, filename, file)
File "/usr/lib64/python3.6/imp.py", line 170, in load_source
module = _exec(spec, sys.modules[name])
File "<frozen importlib._bootstrap>", line 618, in _exec
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/tmp/ansible_eos_linkagg_payload_r82tg3mx/__main__.py", line 350, in <module>
File "/tmp/ansible_eos_linkagg_payload_r82tg3mx/__main__.py", line 340, in main
File "/tmp/ansible_eos_linkagg_payload_r82tg3mx/ansible_eos_linkagg_payload.zip/ansible/module_utils/network/eos/eos.py", line 639, in load_config
File "/tmp/ansible_eos_linkagg_payload_r82tg3mx/ansible_eos_linkagg_payload.zip/ansible/module_utils/network/eos/eos.py", line 533, in load_config
File "/tmp/ansible_eos_linkagg_payload_r82tg3mx/ansible_eos_linkagg_payload.zip/ansible/module_utils/network/eos/eos.py", line 567, in edit_config
File "/tmp/ansible_eos_linkagg_payload_r82tg3mx/ansible_eos_linkagg_payload.zip/ansible/module_utils/connection.py", line 186, in __rpc__
ansible.module_utils.connection.ConnectionError: Invalid input (at token 0: 'interface')
fatal: [192.168.81.139]: FAILED! => {
"changed": false,
"module_stderr": "Traceback (most recent call last):\n File \"/root/.ansible/tmp/ansible-local-39781sLXLRF/ansible-tmp-1572035876.93-230989551209124/AnsiballZ_eos_linkagg.py\", line 114, in <module>\n _ansiballz_main()\n File \"/root/.ansible/tmp/ansible-local-39781sLXLRF/ansible-tmp-1572035876.93-230989551209124/AnsiballZ_eos_linkagg.py\", line 106, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/root/.ansible/tmp/ansible-local-39781sLXLRF/ansible-tmp-1572035876.93-230989551209124/AnsiballZ_eos_linkagg.py\", line 49, in invoke_module\n imp.load_module('__main__', mod, module, MOD_DESC)\n File \"/usr/lib64/python3.6/imp.py\", line 235, in load_module\n return load_source(name, filename, file)\n File \"/usr/lib64/python3.6/imp.py\", line 170, in load_source\n module = _exec(spec, sys.modules[name])\n File \"<frozen importlib._bootstrap>\", line 618, in _exec\n File \"<frozen importlib._bootstrap_external>\", line 678, in exec_module\n File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed\n File \"/tmp/ansible_eos_linkagg_payload_r82tg3mx/__main__.py\", line 350, in <module>\n File \"/tmp/ansible_eos_linkagg_payload_r82tg3mx/__main__.py\", line 340, in main\n File \"/tmp/ansible_eos_linkagg_payload_r82tg3mx/ansible_eos_linkagg_payload.zip/ansible/module_utils/network/eos/eos.py\", line 639, in load_config\n File \"/tmp/ansible_eos_linkagg_payload_r82tg3mx/ansible_eos_linkagg_payload.zip/ansible/module_utils/network/eos/eos.py\", line 533, in load_config\n File \"/tmp/ansible_eos_linkagg_payload_r82tg3mx/ansible_eos_linkagg_payload.zip/ansible/module_utils/network/eos/eos.py\", line 567, in edit_config\n File \"/tmp/ansible_eos_linkagg_payload_r82tg3mx/ansible_eos_linkagg_payload.zip/ansible/module_utils/connection.py\", line 186, in __rpc__\nansible.module_utils.connection.ConnectionError: Invalid input (at token 0: 'interface')\n",
"module_stdout": "",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1