Closed ksator closed 7 years ago
Fixed in #4008
@privateip, ping. This issue is still waiting on your response. click here for bot help
Even with the fix in 2.1.1, this doesn't seem to be working for me. I'm trying to use delete system ntp
to clear out all NTP info before setting the correct server, but the diff only shows it adding the new server.
Edit: my problem may be unrelated. It looks like lxml
is screwing up somehow and returning an empty string when ele.text
is used in the get_config()
function in module_utils/junos.py
Edit2: it's not lxml screwing up. JunOS is sending XML format when format='set'
is specified for the get_configuration
RPC call :(
Edit3: created https://github.com/ansible/ansible/issues/17111 for the issue I discovered
@privateip, @gundalow, ping. This issue is still waiting on your response. click here for bot help
We believe this is fixed, though we need to test to confirm
@privateip, @gundalow, ping. This issue is still waiting on your response. click here for bot help
@privateip, @gundalow, ping. This issue is still waiting on your response. click here for bot help
@privateip, @gundalow, ping. This issue is still waiting on your response. click here for bot help
@privateip, @gundalow, ping. This issue is still waiting on your response. click here for bot help
@privateip, @gundalow, @qalthos, ping. This issue is still waiting on your response. click here for bot help
This repository has been locked. All new issues and pull requests should be filed in https://github.com/ansible/ansible
Please read through the repomerge page in the dev guide. The guide contains links to tools which automatically move your issue or pull request to the ansible/ansible repo.
This issue was migrated to https://github.com/ansible/ansible/issues/29775
ISSUE TYPE
COMPONENT NAME
junos_config https://github.com/ansible/ansible-modules-core/blob/devel/network/junos/junos_config.py http://docs.ansible.com/ansible/junos_config_module.html
ANSIBLE VERSION
CONFIGURATION
default
OS / ENVIRONMENT
$ uname -a Linux ubuntu 3.19.0-25-generic #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
SUMMARY
can not delete junos configuration lines on junos devices using the module junos_config with the parameter lines + delete (the delete details doesnt apply).
STEPS TO REPRODUCE
I used this playbook https://github.com/ksator/ansible-training-for-junos/blob/master/junos_config/playbook.yml (module junos_config, with the parameter lines, and some lines starting wuth delete). ansible-playbook junos_config/playbook.yml
EXPECTED RESULTS
The expected result with module junos_config with the parameter lines with lines starting with delete is: this module should remove these junos lines on remote devices. with the playbook above, this "system name-server 172.30.179.2" should be removed from the junos configuration of the host.
ACTUAL RESULTS
the playbook did not remove "system name-server 172.30.179.2" on the host. however the details of the set command (set system host-name newname) has been added succesfully.