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
Collection Version
---------------------------------------- -------
cisco.iosxr 10.1.0
OS / ENVIRONMENT
Ansible host: Fedora 39
IOS XRd: 7.9.1
STEPS TO REPRODUCE
I tested this to deploy a config
# deploy.yml
- name: Deploy Configurations to Deviceshosts: allgather_facts: falsetasks:
- name: Replace configuration with intended configurationcisco.iosxr.iosxr_config:
src: "config.cfg"replace: config
EXPECTED RESULTS
Module running successfully
ACTUAL RESULTS
The full traceback is:
File "/home/user/.ansible/collections/ansible_collections/cisco/iosxr/plugins/module_utils/network/iosxr/iosxr.py", line 122, in get_capabilities
capabilities = Connection(module._socket_path).get_capabilities()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.pyenv/versions/3.12.3/envs/env/lib/python3.12/site-packages/ansible/module_utils/connection.py", line 199, in __rpc__
raise ConnectionError(to_text(msg, errors='surrogate_then_replace'), code=code)
[DEPRECATION WARNING]: The `ansible.module_utils.compat.importlib.import_module` function is deprecated. This feature will be removed in version 2.19. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
fatal: [R1]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"admin": false,
"after": null,
"backup": false,
"before": null,
"comment": "configured by iosxr_config",
"config": null,
"disable_default_comment": false,
"exclusive": false,
"force": false,
"label": null,
"lines": null,
"match": "line",
"parents": null,
"replace": "config",
"src": "!\nhostname R1\n!\nusername clab\n group root-lr\n group cisco-support\n secret clab@123\n!\ngrpc\n!\ninterface MgmtEth0/RP0/CPU0/0\n ipv4 address 172.20.20.2 255.255.255.0\n!\nrouter static\n address-family ipv4 unicast\n 0.0.0.0/0 MgmtEth0/RP0/CPU0/0 172.20.20.1\n !\n!\nssh server v2\nssh server netconf vrf default\nend"
}
},
"msg": "name 'e' is not defined"
}
The text was updated successfully, but these errors were encountered:
jmussmann
added a commit
to jmussmann/ansible_collection_cisco.iosxr
that referenced
this issue
Sep 10, 2024
SUMMARY
The collection does not work with ios xrd and cliconf.
ISSUE TYPE
COMPONENT NAME
plugins/cliconf/iosxr.py
ANSIBLE VERSION
COLLECTION VERSION
OS / ENVIRONMENT
STEPS TO REPRODUCE
I tested this to deploy a config
EXPECTED RESULTS
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: