community.general/lib/ansible/plugins/cliconf
Ricardo Carrillo Cruz d178df8f01
Fix edit_config multiline commands on IOS (#35375)
* Fix edit_config multiline commands on IOS

The current code for multiline commands in IOS is broken: If you
pass a dict containing a command, prompt and answer it is seen
later as unicode string, but if you do a json.loads it fails
as the keys/values are enclosed in single quotes but JSON requires
double quotes.

Fixes #23539

* Fix pep8

* Use ast literal_eval

It's safe to use, as it is just for types and wont execute arbitrary code.
2018-01-29 12:03:25 +01:00
..
__init__.py Plumb newline param on cliconf (#34868) 2018-01-15 14:16:56 +01:00
aireos.py Refactor common network shared and platform utils code into package (#33452) 2017-12-03 21:42:30 +05:30
aruba.py Refactor common network shared and platform utils code into package (#33452) 2017-12-03 21:42:30 +05:30
asa.py Refactor common network shared and platform utils code into package (#33452) 2017-12-03 21:42:30 +05:30
dellos6.py 2.5 Plugin Environment support and Testcases for dellos6 modules (#34890) 2018-01-22 12:34:21 +00:00
dellos9.py Ansible 2.5 feature support for dellos9 (#34880) 2018-01-23 13:59:27 +00:00
dellos10.py Added support for new Ansible Infra (network_cli plugin, cliconf, module utils cleanup and test) for dellos10 Support t (#34915) 2018-01-25 12:37:27 +00:00
enos.py Refactor common network shared and platform utils code into package (#33452) 2017-12-03 21:42:30 +05:30
eos.py Refactor EOS code to use cliconf (#34426) 2018-01-11 13:33:33 +01:00
ios.py Fix edit_config multiline commands on IOS (#35375) 2018-01-29 12:03:25 +01:00
iosxr.py IOS XR cli tests move to network_cli (#34007) 2017-12-20 11:26:09 -05:00
ironware.py Refactor common network shared and platform utils code into package (#33452) 2017-12-03 21:42:30 +05:30
junos.py Refactor common network shared and platform utils code into package (#33452) 2017-12-03 21:42:30 +05:30
nxos.py nxos tests to use network_cli (#34474) 2018-01-05 12:39:04 -05:00
onyx.py Mellanox OS name change: MLNXOS changed to ONYX (#34753) 2018-01-11 22:21:17 +00:00
vyos.py Fix vyos sending `'None'` to device (#33889) 2017-12-15 11:20:53 -05:00