Ganesh Nalawade
70bf9b9919
Add backup filename and dir path option for config network modules ( #50801 )
...
* Add configurable backup path option for network config modules
Fixes #50283
Fixes #32724
* Add back_options in network config module argspec
* Handle backup path options in network action plugin
* Fix review comments
* Add integration tests
* Update changelog
6 years ago
Trishna Guha
a8c24a5d5e
Add cli_config module ( #42413 )
...
* cli_config module
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* rename diff and replace
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* add nxos changes
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* nxos tests
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* remove severity
* address review comment
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* add module diff
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* add iosxr test
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* address diff review
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* Add junos tests
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* vyos cliconf diff fix
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
6 years ago
Nathaniel Case
a197125954
Nxos restore provider to nxapi tests ( #41818 )
...
* Quick and dirty sed to add provider
* Manually verify the rest of the cases
* Add missing provider
6 years ago
Trishna Guha
8ab0d654f3
don't retrieve config in running_config when config is provided for diff ( #41400 )
...
* don't retrieve config in running_config when config is provided for diff
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* fix for eos, nxos
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* add integration test
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
6 years ago
Nathaniel Case
02135d5278
Nxos test reorganize ( #41089 )
...
* Remove local from most cli tests
* Readd local tests to nxapi until httpapi passes
7 years ago
Nathaniel Case
82dfa542c2
Replace bogus (but routeable) ip addresses with RFC 5737 example addresses ( #40554 )
...
* Remove 1.1.1.1 from *_config tests
* remove from *_smoke and *_system
* Miscellaneous other tests
* Remove from module documentation as well
* Remove from unit tests as well
* Remove accidental duplication from rebase
7 years ago
Nathaniel Case
e9d7fa0418
HTTP(S) API connection plugin ( #39224 )
...
* HTTPAPI connection
* Punt run_commands to cliconf or httpapi
* Fake enable_mode on eapi
* Pull changes to nxos
* Move load_config to edit_config for future-preparedness
* Don't fail on lldp disabled
* Re-enable check_rc on nxos' run_commands
* Reorganize nxos httpapi plugin for compatibility
* draft docs for connection: httpapi
* restores docs for connection:local for eapi
* Add _remote_is_local to httpapi
7 years ago
Mike Wiebe
63e16431b7
Fix legacy Nexus 3k integration test and module issues. ( #40322 )
...
* Add setup ignore_errors for nxos_config test
* Fix parse_fan_info for n3k
* Skip bidir tests for N3k
* Omit vni config for n3k
* Skip unsupported nxos_vrf_af test on N3K
* Add legacy N3K platform tag
7 years ago
Nathaniel Case
46263d77f1
Fixes for nxos_config integration tests ( #34579 )
...
* deletage_to: localhost -> connection: local
* Fix test setup
7 years ago
Nathaniel Case
c5d0b15160
Fixes nxos_l2_interface tests ( #34514 )
...
* Update nxos tests that got missed in the first pass
* Add setup for setting interfaces to layer2
7 years ago
Nathaniel Case
c371ed8d30
nxos tests to use network_cli ( #34474 )
...
* Fix over-byte
* Fix nxos_l2_interface docs
* Update connections for tasks
* Add default ssh port
* Only report provider when using connection=local
* Send empty provider when connection=network_cli
* Fix find tasks
7 years ago
Nathaniel Case
d07d9390d7
Stop toggling nxapi ( #28532 )
...
* Stop toggling nxapi all the time
* Update failed_modules
* Restore nxapi state at each toggle
7 years ago
Trishna Guha
2bef344512
nxos_config CI fix ( #29437 )
...
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
7 years ago
Ricardo Carrillo Cruz
497e6cf405
Use 'hostname switch' on setup/teardown tasks for nxos_config non_idempotent ( #29132 )
...
inventory_hostname breaks CI due to too long string.
7 years ago
Ricardo Carrillo Cruz
8b6e3272f2
Set hostname to 'switch' on nxos_config toplevel setup/teardown tasks ( #29127 )
...
Using inventory_hostname breaks in our CI, as the inventory_hostname
translates to a long UUID, exceeding the maximum length for a NXOS
hostname.
7 years ago
rahushen
50d148a7d6
Add nxos_config IT ( #28853 )
...
* recalibrate tests and add new ones
* add new cli tests
* add new nxapi tests
* Add new tests for cli and nxapi
7 years ago
David Newswanger
5df02dc288
nxos: merge nxapi/cli tests - config, bgp_neighbor, command, bgp_af ( #28235 )
...
* refactor nxos_bgp_af
* refactor nxos_bgp_neighbor
* refactor nxos_command
* refactor nxos_config
* removed accidental file
7 years ago
John R Barker
e9e2d67035
Run vyos_command Network tests in Shippable ( #24514 )
...
* Run VyOS Network tests in Shippable
* net_command no longer exists
* network/ci
* Disable other network tests
* pep8 fix
* Fix PEP 8 issue.
8 years ago
Ricardo Carrillo Cruz
1fd58c295c
Add missing aliases files on nxos integration targets ( #23070 )
8 years ago
Peter Sprygada
14c05d9e2b
roll up of fixes for nxos_config ( #21949 )
...
* fixes provider to not log entries
* fixes nxapi send_request with config statements
* fixes nxapi get_config()
* updates nxos_config integration tests
8 years ago
Peter Sprygada
381f7209f8
fixes issue in nxos_config when retrieving current config ( #21843 )
...
When parsing the configuration, the wrong indent level was set so the
configurations could not be properly compared. Also noted that
defaults: yes needed to be added to the integration tests to make the
test cases valid, which is also included in this patch
fixes #21828
8 years ago
John R Barker
fb3bef7f46
Use inventory_hostname_short ( #20054 )
...
When using AWS we have to use the full domain name in the inventory file, which
we rather than the short name. This change avoids that ending up being
set in the tests.
8 years ago
Adrien Vergé
0e834fc9e4
Fix cosmetic problems in YAML source
...
This change corrects problems reported by the `yamllint` linter.
Since key duplication problems were removed in 4d48711
, this commit
mainly fixes trailing spaces and extra empty lines at beginning/end of
files.
8 years ago
John R Barker
e0cc7b3415
Migrate Network Tests into ansible/ansible ( #18233 )
...
* Docs Networking tests
* Copy networking tests from test-network-modules
* Networking transport settings - group_vars
* Network playbooks
* Debug should be off by default
* Update nxos.yaml
* Remove items from top level
* Use dependencies, not pre-tasks
* Remove trailing blank lines
* Remove backup files
* newlines
8 years ago