HuaweiSwitch/CloudEngine-Ansible

同样的playbook模板CE6863支持,但是CE6863E不支持。

neoliupassccie opened this issue · 1 comments

同样的playbook模板CE6863支持,但是CE6863E不支持。
我尝试vap相关的功能,报以下错误——

{
_"changed": false,
"module_stderr": "/var/folders/ss/zqp6d6xd6_s5vp6cm0mjzd040000gn/T/ansible_ce_vxlan_vap_payload_ihaGb0/ansible_ce_vxlan_vap_payload.zip/ansible/modules/network/cloudengine/ce_vxlan_vap.py:500: FutureWarning: The behavior of this method will change in future versions. Use specific 'len(elem)' or 'elem is not None' test instead.\nTraceback (most recent call last):\n File "/Users/neo/.ansible/tmp/ansible-tmp-1683203130.454108-72882324817503/AnsiballZ_ce_vxlan_vap.py", line 102, in \n _ansiballz_main()\n File "/Users/neo/.ansible/tmp/ansible-tmp-1683203130.454108-72882324817503/AnsiballZ_ce_vxlan_vap.py", line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File "/Users/neo/.ansible/tmp/ansible-tmp-1683203130.454108-72882324817503/AnsiballZ_ce_vxlan_vap.py", line 40, in invoke_module\n runpy.run_module(mod_name='ansible.modules.network.cloudengine.ce_vxlan_vap', init_globals=None, run_name='main', alter_sys=False)\n File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 192, in run_module\n fname, loader, pkg_name)\n File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in run_code\n exec code in run_globals\n File "/var/folders/ss/zqp6d6xd6_s5vp6cm0mjzd040000gn/T/ansible_ce_vxlan_vap_payload_ihaGb0/ansible_ce_vxlan_vap_payload.zip/ansible/modules/network/cloudengine/ce_vxlan_vap.py", line 931, in \n File "/var/folders/ss/zqp6d6xd6_s5vp6cm0mjzd040000gn/T/ansible_ce_vxlan_vap_payload_ihaGb0/ansible_ce_vxlan_vap_payload.zip/ansible/modules/network/cloudengine/ce_vxlan_vap.py", line 927, in main\n File "/var/folders/ss/zqp6d6xd6_s5vp6cm0mjzd040000gn/T/ansible_ce_vxlan_vap_payload_ihaGb0/ansible_ce_vxlan_vap_payload.zip/ansible/modules/network/cloudengine/ce_vxlan_vap.py", line 888, in work\n File "/var/folders/ss/zqp6d6xd6_s5vp6cm0mjzd040000gn/T/ansible_ce_vxlan_vap_payload_ihaGb0/ansible_ce_vxlan_vap_payload.zip/ansible/modules/network/cloudengine/ce_vxlan_vap.py", line 662, in config_traffic_encap\n File "/var/folders/ss/zqp6d6xd6_s5vp6cm0mjzd040000gn/T/ansible_ce_vxlan_vap_payload_ihaGb0/ansible_ce_vxlan_vap_payload.zip/ansible/modules/network/cloudengine/ce_vxlan_vap.py", line 566, in config_traffic_encap_dot1q\n File "/var/folders/ss/zqp6d6xd6_s5vp6cm0mjzd040000gn/T/ansible_ce_vxlan_vap_payload_ihaGb0/ansible_ce_vxlan_vap_payload.zip/ansible/module_utils/network/cloudengine/ce.py", line 339, in set_nc_config\n File "/var/folders/ss/zqp6d6xd6_s5vp6cm0mjzd040000gn/T/ansible_ce_vxlan_vap_payload_ihaGb0/ansible_ce_vxlan_vap_payload.zip/ansible/module_utils/network/common/netconf.py", line 76, in rpc\n File "/var/folders/ss/zqp6d6xd6_s5vp6cm0mjzd040000gn/T/ansible_ce_vxlan_vap_payload_ihaGb0/ansible_ce_vxlan_vap_payload.zip/ansible/module_utils/network/common/netconf.py", line 105, in parse_rpc_error\nansible.module_utils.connection.ConnectionError: <rpc-error xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">\n application\n operation-failed\n error\n 7596\n The device does not support the current configuration.\n \n\n",
"module_stdout": "",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1
}

但是同样的命令,CE6863上就没问题。
请帮忙解答下。或者是否有针对CE6863E的一套CE功能模块

版本如下
Huawei Versatile Routing Platform Software
VRP (R) software, Version 8.191 (CE6863 V200R019C10SPC800)
Copyright (C) 2012-2020 Huawei Technologies Co., Ltd.
HUAWEI CE6863-48S6CQ uptime is 703 days, 22 hours, 2 minutes
Patch Version: V200R019SPH006

CE6863-48S6CQ(Master) 1 : uptime is 703 days, 22 hours, 1 minute
StartupTime 2021/06/03 19:58:41+08:00
Memory Size : 4096 M bytes
Flash Size : 4096 M bytes
CE6863-48S6CQ version information

  1. PCB Version : CEM48S6CQP04 VER C
  2. MAB Version : 4
  3. Board Type : CE6863-48S6CQ
  4. CPLD1 Version : 261
  5. CPLD2 Version : 261
  6. BIOS Version : 1262

======

Huawei Versatile Routing Platform Software
VRP (R) software, Version 8.210 (CE6863E V200R021C00SPC200)
Copyright (C) 2012-2021 Huawei Technologies Co., Ltd.
HUAWEI CE6863E-48S6CQ uptime is 28 days, 22 hours, 1 minute
Patch Version: V200R021SPH010

CE6863E-48S6CQ(Master) 1 : uptime is 28 days, 22 hours, 1 minute
StartupTime 2023/04/09 12:08:41
Memory Size : 4096 M bytes
Flash Size : 4096 M bytes
CE6863E-48S6CQ version information

  1. PCB Version : CEM48S6CQP11 VER B
  2. MAB Version : 1
  3. Board Type : CE6863E-48S6CQ
  4. CPLD1 Version : 257
  5. CPLD2 Version : 257
  6. BIOS Version : 1306