-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
netconf_config false argument when using confirm_commit #551
Comments
I have also tried the following: - name: Configure devices
tags:
- ip
- domain
netconf_config:
get_filter: "/native/ip/domain"
content: "{{ lookup('template', 'native_ip_domain.j2') }}"
format: xml
target: candidate
lock: never
confirm: 10
register: result
until: result is not failed
retries: "{{ DEFAULT_RETRIES }}"
delay: "{{ DEFAULT_DELAY }}"
- name: Confirm a previous commit
tags:
- ip
- domain
netconf_config:
lock: never
confirm_commit: yes |
Update: Tried to upgrade ansible and collections yesterday, but have the same issue:
Collection
|
Any updates on this? :) Still getting: When adding "confirm: 10" |
Tried to add unicode instead of int. Now it fails because it says it cannot convert the unicode to int. msg": "argument 'confirm' is of type <class 'ansible.parsing.yaml.objects.AnsibleUnicode'> and we were unable to convert to int: <class 'ansible.parsing.yaml.objects.AnsibleUnicode'> cannot be converted to an int"} |
You have previously fixed it for ios-xr here: |
BUMP - ticket still valid |
SUMMARY
Getting the following error when enabling commit with or without confirm_commit:
false, "msg": "Argument must be bytes or unicode, got 'int'"}
I have seen bug reports on the same on previous ansible version 2.9 and 2.7 - we are on 2.13
it is the waiting time specified under "commit: 10" that fails
But also fails to identify "confirm_commit: true" or "confirm_commit: yes"
ISSUE TYPE
COMPONENT NAME
netconf_config
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Ansible running on: Ubuntu 20.04.5 LTS
target network device: cisco IE-3300-8T2S
target firmware; 17.9.3
target network device support for confirmed_commit
urn:ietf:params:netconf:capability:confirmed-commit:1.1
urn:ietf:params:netconf:capability:confirmed-commit:1.0
urn:ietf:params:netconf:capability:candidate:1.0
STEPS TO REPRODUCE
EXPECTED RESULTS
I expected confim_commit succes
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: