Samer Deeb
8ddb84a155
Add module mlnxos_vlan for supporting vlan configuration on Mellanox switches ( #34113 )
...
* Add module mlnxos_vlan for supporting vlan configuration on Mellanox
switches
Signed-off-by: Samer Deeb <samerd@mellanox.com>
* use sgort header and fix METADATA
Signed-off-by: Samer Deeb <samerd@mellanox.com>
2017-12-23 12:11:25 +05:30
Samer Deeb
dbcfea587c
Add module mlnxos_l2_interface for supporting configuration of L2 interfaces on Mellanox switches ( #34158 )
...
* Add module mlnxos_l2_interface for supporting configuration of L2
interfaces on Mellanox switches
Signed-off-by: Samer Deeb <samerd@mellanox.com>
* use shorter header and fix METADATA
Signed-off-by: Samer Deeb <samerd@mellanox.com>
2017-12-23 11:24:35 +05:30
Ganesh Nalawade
d5061aa8e6
Add ios_l3_interface module ( #34201 )
...
* Add ios_l3_interface module
Fixes #31298
* Add ios_3_interface module
* Integration test
* Return command response for load_config()
* Fix CI issues
2017-12-23 11:24:00 +05:30
Samer Deeb
0deda64231
Add module mlnxos_lldp for supporting configuration of LLDP protocol on Mellanox switches ( #34159 )
...
* Add module mlnxos_lldp for supporting configuration of LLDP protocol on Mellanox switches
Signed-off-by: Samer Deeb <samerd@mellanox.com>
* Fix header and metadata
Signed-off-by: Samer Deeb <samerd@mellanox.com>
* Fix imports
Signed-off-by: Samer Deeb <samerd@mellanox.com>
2017-12-23 10:54:05 +05:30
Tim Rupp
d19108e592
Adds more token cleanup ( #34207 )
...
Token cleanup assists in preventing the ansible modules from
overwhelming the existing tokens in bigip api
2017-12-22 12:54:56 -08:00
Tim Rupp
75fbfb9e36
Fixes and additions to bigip_pool ( #34205 )
...
Removes deprecated host/port params. Adds metadata param. Adds new
classes to better support refactoring and maintenance.
2017-12-22 12:39:19 -08:00
Tim Rupp
554ffd70f5
Adds token cleanup to bigip irules ( #34203 )
...
Token cleanup helps keep the bigip from getting wedged
2017-12-22 11:40:20 -08:00
Claes Nästén
5bd8a8f491
Add nso_query module to query Cisco NSO using XPath ( #34188 )
2017-12-22 16:56:50 +00:00
John R Barker
cd8632dd7f
Specify default ( #34186 )
2017-12-22 04:58:55 -05:00
Claes Nästén
d6fd9703f1
Add nso_show module for Cisco NSO ( #34142 )
...
* update version parsing and move requirements to nso_* modules
prepare for introduction of nso_show module that has other version
requirements than the existing nso_* modules.
* Add nso_show module for retreiving config from Cisco NSO
New module that supports getting configuration and operational data
from Cisco NSO.
2017-12-22 09:43:22 +00:00
Pilou
459adf8966
ios_static_route: fix broken import ( #34133 )
...
* Fix broken import
* doc: add ipaddress in requirements
2017-12-21 17:12:19 +05:30
Trishna Guha
60f3649ebd
Convert nxos_vlan to DI module ( #31866 )
...
* Convert nxos_vlan to DI
* fix conflict
* push fix for qalthos's comment
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
2017-12-21 14:08:33 +05:30
Mohamed Javeed
5089122a32
Encode xml data to utf8 standard ( #34079 )
2017-12-21 10:10:18 +05:30
Nathaniel Case
9e09a9ea61
Turns out the order is important ( #34116 )
2017-12-21 09:26:30 +05:30
kalimsshar
4086cb4b25
Added support for Cisco stacks in ios_facts.py ( #33714 )
2017-12-20 12:33:47 -05:00
Nathaniel Case
2e76c89910
IOS XR cli tests move to network_cli ( #34007 )
...
* Update task definitions for network_cli
* Add connection to debug messages
* Specify connection for prepare task
* pc won't be around for connection=network_cli
* Assorted Python 3 fixes
* Give default port if ansible_ssh_port missing
* delegate -> connection
* Extend error regex
2017-12-20 11:26:09 -05:00
Pilou
4713d9ea44
ce_file_copy: fix broken import ( #34023 )
...
* fix broken import
* doc: use formatting functions
2017-12-20 14:44:01 +00:00
Trishna Guha
663f8464ee
eos_linkagg DI module ( #33007 )
...
* eos_linkagg DI module
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* integration test
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* pep8 fixes
* Push fix for Qalthos's comment
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
2017-12-20 19:43:30 +05:30
Nathaniel Case
cb1b705218
ios integration tests to network_cli ( #33920 )
...
* Preliminary steps
* Fix Python3 network_cli ios
* Add connection to debug strings
* Fix ios confirm prompt by way of optional newline
Also update ios_user delete tests
2017-12-20 09:03:29 -05:00
Trishna Guha
4a4da2b774
nxos_static_route DI module ( #33797 )
...
* nxos_static_route DI module
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* add version_added
2017-12-20 17:08:29 +05:30
Kedar Kekan
78a14d7966
Cliconf and Netconf refactoring iosxr_interface ( #33909 )
...
* Cliconf and Netconf refactoring iosxr_interface
* adds `xml` key and related changes for netconf output
* * review comments changes
2017-12-20 13:06:07 +05:30
Trishna Guha
be89822bb5
Deprecate nxos_portchannel and add nxos_linkagg DI module ( #33376 )
...
* deprecate nxos_portchannel
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* Add nxos_linkagg DI module
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* remove nxos_portchannel unit test
* fix syntax issues
* fix ansible-doc failure
* update nxos_portchannel unittest
* minor fixes and integration test
* update nxos_linkagg
2017-12-20 11:26:07 +05:30
Trishna Guha
3cce8dfafd
Deprecate nxos_ip_interface and Add nxos_l3_interface DI module ( #33866 )
...
* Deprecate nxos_ip_interface module
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* Add nxos_l3_interface DI module
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* Add integration test
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* pep8 fixes
* Add nxapi cli test
* Improve complexity
* manage layer3 interface
* fix unit test
2017-12-20 11:07:23 +05:30
Trishna Guha
27be2a0f5a
Handle nxos platform diffs with cli conf implementation ( #34020 )
...
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
2017-12-20 10:41:10 +05:30
James Mighion
ded4e6ac0f
Ios config save ( #33885 )
...
* Fixing save so it still works. Adding changed as an option for save_when.
* Updating description to state that changed was added in 2.5.
* Fixing removal version for deprecated options.
2017-12-19 18:04:21 +00:00
Samer Deeb
1df57ac1ac
Add mlnxos_interface module ( #33839 )
...
* Add new module: mlnxos_interface for configuring mlnxos ethernet
interfaces
Signed-off-by: Samer Deeb <samerd@mellanox.com>
* Update mlnxos.py
* Fix Documentation
Signed-off-by: Samer Deeb <samerd@mellanox.com>
* Add missing documentation
Signed-off-by: Samer Deeb <samerd@mellanox.com>
2017-12-19 17:24:42 +00:00
Trishna Guha
9f86b923e9
[CLI_CONF] Refactor nxos module common library to use cliconf plugin ( #31524 )
...
* refactor nxos modules
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* get_config update
* fix get_config
* update nxos module
* device_info
* fix conflict
* add failure message check
* pep8 fixes
* use get_capabilities to check cliconf
* Add logic to detect platform in get_capabilities and cache in module_utils
* return msg in edit_config
* fix conflicts
* make modules compatible
* fix nxos cliconf api
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* cache capabilities
* Update transport queries to get_capabilities in module level
* fix unit tests
* load_config error code
* remove unnecessary change
* Refactor nxos_install_os module
2017-12-19 12:22:33 +05:30
Claes Nästén
5fdb39c4d1
nso_verify for Cisco NSO ( #33945 )
...
Module for verifying that configuration is as expected in Cisco NSO.
2017-12-15 13:43:07 +00:00
Claes Nästén
b2bc98c161
nso_action for Cisco NSO ( #32781 )
...
nso_action module for execution actions/RPCs in NSO.
2017-12-15 11:29:04 +00:00
Tim Rupp
22059cbe67
Adds bigip_device_httpd module ( #33924 )
...
this module can be used to adjust the details of the server that
hosts the BIG-IP web ui.
2017-12-14 14:16:28 -08:00
James Mighion
f8e3cfe9e2
Aruba indenting ( #33884 )
...
* Fixing aruba's inconsitent indenting.
* Adding config with different children indentation and unit test to confirm the different spacing does not matter.
* Fixing pylint check. Missed an r prefix.
2017-12-14 14:37:34 +05:30
Jacob McGill
3b941802ac
ACI ENCAP POOL RANGES: Add new module to support encap ranges ( #33758 )
...
* ACI ENCAP POOL RANGES: Add new module to support encap ranges
* fix module name
* remove extra format string
2017-12-14 00:35:50 +01:00
Anil Kumar Muraleedharan
890b97a38f
Lenovo enos bugfixes ( #33857 )
...
* Bug Fixes to issues foubd during testing
* Removing blank line
* undefined-variable Undefined variable 'run_commands' and training new line
* Reverting and Modifying changes with both Unit test and Integrated test with Devices passing
2017-12-13 20:57:51 +00:00
James Mighion
3a9083cf48
ios_config save ( #33791 )
...
* Fixing save so it still works. Adding changed as an option for save_when.
* Updating unit tests.
* Updating description to state that changed was added in 2.5.
2017-12-13 07:36:43 -07:00
Ganesh Nalawade
ea18b9021a
Revert "Deprecate Entity, EntityCollection and use subspec in network modules ( #33575 )" ( #33849 )
...
This reverts commit 4349b56643
.
2017-12-13 13:07:52 +05:30
Tim Rupp
9a807e6316
Adds bigip_security_port_list module ( #33845 )
...
This module can be used to manage port lists in an AFM configuration.
2017-12-12 21:13:06 -08:00
Tim Rupp
cb026bb660
Adds bigip_profile_client_ssl module ( #33844 )
...
This module can be used to manage client ssl profiles on a BIG-IP
2017-12-12 19:54:43 -08:00
Nathaniel Case
a2650cbe05
Fix last eos issue in net_* tests ( #33726 )
...
This should finally fix it.
2017-12-12 10:06:06 -05:00
Jacob McGill
9ff5c15f57
ACI Encap pool: New module for support layer2 encap pools ( #33219 )
...
* ACI Encap Pool: Add new module to support VLAN, VXLAN, and VSAN Pools
* update logic for allocation_mode
* update docstring and tests
* Update filter_target since url method has been updated
2017-12-12 07:51:19 +00:00
Jacob McGill
c26a528b21
ACI Module: Update modules to provide match criteria; allows more complex matching ( #33756 )
2017-12-11 18:43:11 +00:00
Trishna Guha
c2b4fd7f1e
Convert non-DI module to DI nxos_user ( #33770 )
2017-12-11 20:55:05 +05:30
Ganesh Nalawade
4349b56643
Deprecate Entity, EntityCollection and use subspec in network modules ( #33575 )
...
* Deprecate Entity, EntityCollection and use subspec in network modules
* As per proposal https://github.com/ansible/proposals/issues/76
deprecate use of Entity, EntityCollection, ComplexDict, ComplexList
and use subspec instead.
* Refactor ios modules
* Refactor eos modules
* Refactor vyos modules
* Refactor nxos modules
* Refactor iosxr modules
* Add support for key in suboptions handling
* Fix CI issues
2017-12-11 20:31:25 +05:30
Tim Rupp
11580947f8
Adds token cleanup to some f5 modules ( #33728 )
...
The tokens can build up over time and if too many accumulate, it
prevents you from logging in. This adds cleanup
2017-12-08 15:39:04 -08:00
Tim Rupp
7b76124c07
Fixes for gtm wide ip ( #33725 )
...
Adds pools argument. Refactors code to support new conventions.
Adds more unit tests
2017-12-08 14:17:30 -08:00
John R Barker
18529a275b
Bulk pep8 fixes - hand crafted ( #33690 )
...
* Bulk pep8 fixes - hand crafted
Fix by hand the remaining issues that autopep8 couldn't
* Next batch of hand crafted pep8 fixes
* Ignore W503
https://github.com/PyCQA/pycodestyle/pull/499
* Revert more of W503
2017-12-07 19:29:21 -08:00
John Barker
10cd2cd1b7
Manually fix issues that autopep8 introduced
...
* iam.py 161 -> 160 chars
* lamba -> single line function -> multiline function
Avoid redefining key
iam line length
iam.py now clean
2017-12-07 20:25:55 +00:00
John Barker
c57a7f05e1
Bulk autopep8 (modules)
...
As agreed in 2017-12-07 Core meeting bulk fix pep8 issues
Generated using:
autopep8 1.3.3 (pycodestyle: 2.3.1)
autopep8 -r --max-line-length 160 --in-place --ignore E305,E402,E722,E741 lib/ansible/modules
Manually fix issues that autopep8 has introduced
2017-12-07 20:25:55 +00:00
Tim Rupp
a0dc776f56
Fixes a weird udf scenario ( #33681 )
...
The situation happened where in udf it stopped provisioning correctly.
Seems like the best resolution is to restart asm.
2017-12-07 08:47:35 -08:00
Kedar Kekan
012a96dabd
code cleanup for `--diff` and `--check` modes ( #33665 )
...
* code cleanup for `--diff` and `--check` modes
* fixes UT to remove exec_command
2017-12-07 20:14:57 +05:30
Kedar Kekan
2bc4c4f156
IOS-XR NetConf and Cliconf plugin work ( #33332 )
...
* - Netconf plugin addition for iosxr
- Utilities refactoring to support netconf and cliconf
- iosx_banner refactoring for netconf and cliconf
- Integration testcases changes to accomodate above changes
* Fix sanity failures, shippable errors and review comments
* fix pep8 issue
* changes run_command method to send specific command args
* - Review comment fixes
- iosxr_command changes to remove ComplexDict based command_spec
* - Move namespaces removal method from utils to netconf plugin
* Minor refactoring in utils and change in deprecation message
* rewrite build_xml logic and import changes for new utils dir structure
* - Review comment changes and minor changes to documentation
* * refactor common code and docs updates
2017-12-06 22:37:31 +05:30