summaryrefslogtreecommitdiff
path: root/lib/ansible/plugins/terminal/vyos.py
Commit message (Collapse)AuthorAgeFilesLines
* Python3 chokes on casting int to bytes (#24952)Nathaniel Case2017-05-231-1/+1
| | | But if we tell the formatter that the var is a number, it works
* Add vyos changes for Python3 (#24603)Ganesh Nalawade2017-05-171-8/+7
| | | | | | | | | | | * Add vyos changes for Python3 Make `execute_command` arguments and its return value complaint to PY3 changes made in PR #24431 pep8 fixes * Fix CI issues
* Set terminal width for network *_command modules to avoid paging (#23728)Trishna Guha2017-04-251-1/+2
| | | Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* clean up of terminal plugins (#21549)Peter Sprygada2017-02-171-8/+2
| | | | | | * removes unneeded supports_multiplexing var * refactors terminal_prompts_re to terminal_stdout_re * refactors terminal_errors_re to terminal_stderr_re * updates network_cli unit test cases
* Detect VyOS based on /etc/issue (support 1.0.5) (#20221)John R Barker2017-01-251-2/+2
| | | | | | | | * Detect VyOS based on /etc/issue (support 1.0.5) VyOS didn't contain `vyos` in `/proc/version` * Update vyos.py
* vyos_command 2.3 (#18994)Nathaniel Case2017-01-231-0/+4
| | | | | | | | * Peter's new module_utils/vyos * Update vyos_command * Restore `set terminal length $ANSIBLE_VYOS_TERMINAL_LENGTH` in vyos * vyos_command tests * Remove provider mentions from vyos_command * Extend get_config to take (and cache) various `show configuration` commands
* adds feature to try to auto determine network_os (#18674)Peter Sprygada2016-11-301-0/+5
| | | | | This updates the network_cli connection plugin to attempt to automatically determine the remote device os. The device network os discovery can be overridden by setting the ansible_network_os value.
* adds two new plugins that use ansible-connection for persistence (#18572)Peter Sprygada2016-11-281-0/+47
* adds new connection plugin `network_cli` which builds on paramiko * adds new plugin `terminal` used for manipulating network_cli terminals * adds new field to play_context `network_os` settable as ansible_network_os This commit adds the plugins necesary to establish a persistent cli connection to network devices of ssh. It builds on the paramiko connection plugin to create a shell environment that will persistent through ansible-connection. The `newtork_cli` plugin then uses the network_os in the instance of PlayContext to load the appropriate network OS environment plugin for handling opening and closing of shells as well as privilege escalation.