| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* eos python3 changes
* changes to convert response from byte to text
* Add dellos6 python3 changes
Make `execute_command` arguments and its
return value complaint to PY3 changes
made in PR #24431
* Fix py3 prompt issue for invalid show command
* Fix review comments
* Add generic fix for error prompt in py3
* Fix CI issue
* Fix network_cli unit test failure
|
|
|
| |
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
|
|
|
|
|
| |
(#24880)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
|
|
|
|
|
|
|
|
| |
* Hook port back up for eos cli transport
* The default values have moved
* Why not have conditional defaults?
|
|
|
| |
* Give a default to eos transport
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Make warning logs consistent
Arguments outside provider with default
value should not log as warning in case
it is not mentioned in play.
* Make nxos timeout default consistent and add comments
* Make comments more verbose
|
|
|
|
|
|
|
|
| |
* Check for provider values inside check_args of respective network code
* Partial revert of b9ee5aa
The no_log change is okay, but take out the action result munging
|
|
|
|
|
|
| |
* Fixes #23388 Network provider masks too much
* Fix trailing whitespace
|
|
|
|
|
| |
We were hard-coding the protocol, port and validate_certs on
eos EAPI via the action plugin.
Put defaults on the eos_argument_spec and pull those values from it.
|
|
|
| |
Fixes #23237
|
|
|
|
|
|
|
| |
The provider argument on the network modules argspec can contain
credentials.
Make sure we don't log it.
Fixes #21892
|
|
|
|
| |
and eos (#22326)
|
|
|
|
| |
* fixes to_command function in eos to not iterate over commands twice
* fixes lots of minor issues with _eos_template
|
|
|
|
|
|
|
| |
eos_config module wasn't respecting config block path (parents). This
patch fixes that problem. Also fixes a number of integration tests
cases
fixes #21903
|
|
|
|
| |
The eos action didn't properly set provider transport argument for the
module. This patch fixes that problem
|
|
|
|
|
| |
* fixes error where eos would close the cli shell
* fixes network_cli connection plugin to check before calling open_shell()
* fixes json commands being sent over eapi
|
|
|
|
|
| |
* adds mapping for ssh_keyfile
* adds correct mappings for eapi
* fixes missing no_log value for provider arg
|
|
|
|
|
|
| |
* refactors supports_sessions to a property
* exposes supports_sessions as a toplevel function
* adds open_shell() to network_cli
* implements open_shell() in eos action plugin
|
|
|
|
|
|
|
|
| |
* fixes issue with load_provider() not checking for an existing key
* adds updates to eos_config results key
* lots of minor syntax fixes in eos shared module
* adds eos_argument_spec to eos_eapi
fixes #21402
|
|
|
|
|
|
| |
* updates eos modules to use persistent connection socket
* removes split eos shared module and combines into one
* adds singular eos doc frag (eos_local to be removed after module updates)
* updates unit test cases
|
|
|
|
|
| |
* fixes up eos_local to call appropriate method
* fixes up ios_cli to call appropriate method
* moves json conversion to eos
|
| |
|
|
|
|
|
| |
* adds send_config function to handle pushing configuration commands
* adds support for handling multiline banner commands
* adds env var check to enable or disable config sessions
|
|
|
|
|
|
| |
* eos module now uses network_cli connection plugin
* adds unit tests for eos module
* eapi support now provided by eapi module
* updates doc fragment for eapi common properties
|
|
|
|
| |
(#18651)
|
|
|
|
| |
This change causes the eapi connection to honor the module timeout
value when calling fetch_url
|
|
|
| |
* Exception.message gone in 3.x
|
|
|
|
| |
the supports_sessions() call was sending the command as a string instead
of a list which is required when transport is eapi. This fixes that bug
|
|
|
|
|
| |
Earlier versions of EOS that do not support config sessions would
create an exception. This fix will now check if the device supports
sessions and if it doesn't, it will fall back to not using sessions
|
|
|
|
|
|
|
|
|
| |
The kickstart kwarg should be set to False for eos based devices and
was set to True. This change cleans up problems loading json output
from cli commands
All eos_command test cases are now passing successfully
fixes #17441
|
|
|
|
|
|
|
|
| |
When using the Cli transport, if the session hung on a command and the
socket timed out, the config session would be left behind. This change
will allow the shell to try to get control back and remove the config
session, assuming the channel is still open.
fixes ansible/ansible-modules-core#4945
|
| |
|
|
|
|
|
| |
Was changed during
https://github.com/ansible/ansible/commit/7fe64ef9b89428d82b5851b5d33b5bba4beb2082
however not all look variables were updated.
|
|
|
|
| |
cleans up the load_config() method
|
|
|
|
|
|
|
| |
The diff returned from eos when the transport was set to eapi was as
a dict but is expected to be a str. This change extracts the diff string
from the dict object and returns it. The behavior is now consistent
between cli and eapi transports.
|
|\
| |
| | |
minor roll up of fixes to eos shared module
|
| |
| |
| |
| |
| |
| | |
* added back import of Command object
* fixed eapi requests to handle output format correctly
* get_config() now honors include_defaults kwargs
|
|/
|
|
|
|
|
|
|
|
| |
Exception thrown when using cli transport in eos but piping the command
through json
* eos now checks for `| json` and automatically changes the output type
* adds back import of Command object
tested on EOS 4.15.4F
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Clean up EOS, IOS, IOS-XR, Junos, NX-OS, and OpenSwitch
* Cleanup net* files
* Re-add NetworkModule import to network module_utils files
This will trick modules into importing code from module_utils code, thus
including it in the final Ansiballz zipfile.
* Give asa a look over, too
|
|
|
|
|
|
| |
* fixes issue with correctly returning the running-config over eapi when a
call was made to get_config()
* fixes issue the MRO in Cli transport
|
|
|
|
|
|
|
| |
* adds support for netcli methods
* adds support for netcfg methods
* Cli class now derives from CliBase
* adds eos_config action plugin
|
| |
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
includes changes from PR ansible/ansible#16636 and refactors for the
NetworkModule changes
new features
* ios now supports transport=restcon will additional arguments
* ModuleStub refactored into common network shared module
* import temporary get_module() function (to be removed prior to 2.2 final)
|
| |
| |
| |
| | |
As per #16575
|
|\ \
| |/
|/|
| |
| |
| |
| | |
This is a temporary change to keep the get_module() function until all
of the network module refactoring is completed to avoid breaking them
in devel. The get_module() function should not be used and will be
removed before 2.2 final.
|
| |
| |
| |
| | |
function to create the NetworkModule
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Update IOS with new NetworkModule
* Remove redundant EOS code
* `authorize` can get rolled into NetCli
* Fix up IOS to where EOS is.
* Update IOSXR for NetworkModule
* collections is unnecessary
|
|
|
|
| |
This removes the dependency on the Python collections module to make
it fully compliant with version prior to py2.7
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* add new module network
* move EOS to NetworkModule
* shell.py Python 3.x compatibility
* implements the Command class through the connection for eos
This implements a new Command class that specifies the cli command
and output format. This removes the need to batch commands through
the connection
* initial add of netcmd module
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Clarify exception handling in EOS
Also modify to EOS to standardize modules. It makes vimdiff a lot less angry
* Move IOS exception handling into Cli
* Move IOS-XR exception handling into Cli
* Move JUNOS exception handling into Cli
* Move NXOS exception handling into Cli
And reorganize to make it match the other modules
* Move OpenSwitch exception handling into Cli
More speculative restructuring here
|