Ryan S. Brown
0bda419f66
Allow AWSRetry class to be created without boto3/botocore installed
2016-09-14 11:34:10 -04:00
Adam Reznechek
23930d799f
Fix cpu facts for hosts missing fields in cpuinfo (16533) ( #16535 )
...
Change linux fact gathering to correctly gather ansible_processor_count
and ansible_processor_vcpus on systems without vendor_id/model_name in
/proc/cpuinfo (for ex, ppc64/POWER)
2016-09-13 17:19:33 -04:00
Allen Sanabria
b510abce17
CloudRetry/AWSRetry backoff decorator with unit tests ( #17039 )
...
* Added aws_retry decorator function with unit tests
* Restructured the code to be used with a base class.
This base class CloudRetry can be reused by any other cloud provider.
This decorator should be used in situations, where you need to implement
a backoff algorithm and want to retry based on the status code from the
exception.
* updated documentation
* fixed tabs
* added botocore and boto3 to requirements.txt
* removed cloud.py from py24 tests, as it depends on boto3
* fix relative imports
* updated test to be 2.6 compat
* updated method name from retry to backoff
* readded lxd
* Updated default backoff from 2 seconds to 1.1s.
This will be about a total of 48 seconds in 10 tries. This is
configurable.
2016-09-13 16:46:59 -04:00
Peter Sprygada
760fff8564
Merge pull request #17546 from skg-net/dnos9_config
...
Added support for dnos9_config module
2016-09-13 15:01:10 -04:00
Nathaniel Case
5331dd482c
Cleanup eos ( #17548 )
2016-09-13 14:29:06 -04:00
Senthil Kumar Ganesan
c6acf44a7c
Added support for dnos9_config module
2016-09-13 10:42:12 -07:00
Nathaniel Case
8b3ae1e806
Cleanup netcfg.py ( #17531 )
...
Closes #17412
2016-09-13 13:40:32 -04:00
John R Barker
e326da28ff
eos: cmd should be item ( #17540 )
...
Was changed during
7fe64ef9b8
however not all look variables were updated.
2016-09-13 17:17:35 +01:00
Brian Coca
8ebd8ca259
updated solaris virtualization detection ( #17464 )
...
avoid prtdiag since it seems to hang and require service restarts
hopefully fixes #4583
2016-09-13 09:03:05 -04:00
Nathaniel Case
036650cb09
Cleanup junos ( #17530 )
...
Closes #17411
2016-09-12 17:42:26 -04:00
Peter Sprygada
076a821821
Merge pull request #17468 from skg-net/dnos9_command
...
dnos9_command (new module)
2016-09-12 17:04:17 -04:00
Nathaniel Case
bfe341177b
Cleanup netcli ( #17529 )
...
This honestly mostly amounts to Python 3 fixes.
2016-09-12 16:08:21 -04:00
Senthil Kumar Ganesan
3e18676af4
Addded support for dnos9_command module
2016-09-12 11:26:22 -07:00
Nathaniel Case
060ed665f6
Cleanup nxos
...
closes #17414
2016-09-12 14:20:50 -04:00
Peter Sprygada
5aa83041bf
Merge pull request #17474 from skg-net/dnos6_command
...
Add module_utils/dnos6.py
2016-09-12 13:40:56 -04:00
Nathaniel Case
fcd4be28ee
Cleanup openswitch
...
Also bump get_config in vyos, to pick up the addition of **kwargs
Closes #17415
2016-09-12 13:35:57 -04:00
Senthil Kumar Ganesan
94df740ca3
Added support for dnos6_command module
2016-09-12 10:08:10 -07:00
Nathaniel Case
2077e32ddd
Vyos cleanup
...
Addresses #17416
2016-09-12 11:19:09 -04:00
Peter Sprygada
4e325274d6
Merge pull request #17512 from privateip/nxos
...
roll up of updates to nxos shared module
2016-09-12 09:44:07 -04:00
Peter Sprygada
7777c38b95
Merge pull request #17508 from privateip/sros
...
updates sros shared module
2016-09-12 09:43:55 -04:00
Peter Sprygada
e83567a8ec
Merge pull request #17509 from privateip/vyos
...
roll up of updates to vyos shared module
2016-09-12 09:43:47 -04:00
Peter Sprygada
560984d282
Merge pull request #17511 from privateip/junos
...
updates junos shared module methods
2016-09-12 09:43:30 -04:00
Peter Sprygada
7c4dad4275
Merge pull request #17513 from privateip/eos
...
cleans up load_config() in eos shared module
2016-09-12 09:42:30 -04:00
Peter Sprygada
ebe2400af8
Merge pull request #17510 from privateip/iosxr
...
clean up iosxr shared module
2016-09-12 09:42:11 -04:00
Peter Sprygada
f4af154bef
Merge pull request #17506 from privateip/openswitch
...
minor clean of openswitch shared module
2016-09-11 23:57:13 -04:00
Peter Sprygada
d2e4ddf0b0
roll up of updates to nxos shared module
...
* combine same functions into NxapiConfigMixin class
* update Cli and Nxapi to use mixin
2016-09-11 23:40:31 -04:00
Peter Sprygada
e9f804614d
removes unneeded message in netcfg
...
removes old warning message in netcfg that is no longer used
2016-09-11 23:38:44 -04:00
Peter Sprygada
815a683e9c
minor clean of openswitch shared module
...
* updates regexp entries
* removes legacy 2.1 code for get_module()
2016-09-11 23:37:19 -04:00
Peter Sprygada
75f1573ed5
roll up of updates to vyos shared module
...
* cleans up method signature
* removes save_config method in favor of super class
2016-09-11 23:35:54 -04:00
Peter Sprygada
a6cf394ebc
updates sros shared module
...
* adds rollback to load_config() method
* updates error regexp list
2016-09-11 23:34:46 -04:00
Peter Sprygada
e5d931de6b
updates junos shared module methods
...
* cleans up load_config() arguments to simply
* removes unused methods in Cli transport
* updates error regexp
2016-09-11 23:33:20 -04:00
Peter Sprygada
a8daff1590
clean up iosxr shared module
...
fixes up method signatures in iosxr shared module removing unneeded **kwargs
2016-09-11 23:32:05 -04:00
Peter Sprygada
456fbf011e
cleans up load_config() in eos shared module
...
cleans up the load_config() method
2016-09-11 23:30:51 -04:00
Chris Houseknecht
39aa740531
Use LooseVersion comparison. Default docker_api_version to 'auto'.
2016-09-10 03:02:50 -04:00
Peter Oliver
c87d84f5b8
Filesystem blocks are of size f_frsize
( #17493 )
...
The statvfs(3) manpage on Linux states that `f_blocks` is the "size of fs in `f_frsize` units". The manpages on Solaris and AIX state something similar.
With ext4 on Linux, I suspect that `f_bsize` and `f_frsize` are always identical, masking this error. On Solaris, the sizes differ for each of ufs, vxfs and zfs causing the `size_available` and `size_total` facts to be set incorrectly on this OS.
2016-09-09 17:39:39 -04:00
Peter Sprygada
1dac6edbe4
minor update to catch expection if trying close a non existent session
...
This will prevent the junos shared module from throwing an exception if
the session is trying to be closed when it doesn't exist
2016-09-09 09:34:12 -04:00
Peter Sprygada
686d79a515
Merge pull request #17467 from privateip/netcfg
...
fixes issue with netcfg not working with match=line and path
2016-09-08 15:48:40 -04:00
Peter Sprygada
457a6ca03e
fixes issue with netcfg not working with match=line and path
...
The difference() method now checks this condition and doesn't filter
the path when match=line
2016-09-08 15:19:12 -04:00
Edward Marshall
1ec9ac4b70
Defined children for get_vm ( #15904 )
2016-09-08 08:41:32 -07:00
Peter Sprygada
982db58aff
Merge pull request #17452 from privateip/netcfg
...
adds context to diff functions based on config path
2016-09-07 21:49:09 -04:00
Peter Sprygada
d64eaae232
Merge pull request #16553 from ericchou1/devel
...
Added axapi_authenticate_v3 and axapi_call_v3 for AXAPIv3
2016-09-07 21:41:51 -04:00
Peter Sprygada
08eeb1518a
adds context to diff functions based on config path
...
* difference() now accepts a path keyword to specify comparision domain
2016-09-07 19:40:47 -04:00
Peter Sprygada
675e87f68d
minor fix in eos shared module returning diff
...
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.
2016-09-07 14:26:10 -04:00
Peter Sprygada
d67af04c45
Merge pull request #17431 from privateip/eos
...
minor roll up of fixes to eos shared module
2016-09-07 08:42:34 -04:00
Toshio Kuratomi
4ed88512e4
Move uses of to_bytes, to_text, to_native to use the module_utils version ( #17423 )
...
We couldn't copy to_unicode, to_bytes, to_str into module_utils because
of licensing. So once created it we had two sets of functions that did
the same things but had different implementations. To remedy that, this
change removes the ansible.utils.unicode versions of those functions.
2016-09-06 22:54:17 -07:00
Peter Sprygada
ca95b2ae4f
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
2016-09-06 22:54:04 -04:00
Peter Sprygada
113dfc5562
Merge pull request #17426 from privateip/nxos
...
fixes issue when piping commands through json with output not specifed
2016-09-06 19:24:05 -04:00
Peter Sprygada
52d1187f5c
Merge pull request #17425 from privateip/netcli
...
removes command caching on retrieve from netcli
2016-09-06 19:23:53 -04:00
Peter Sprygada
666b19869b
Merge pull request #17424 from privateip/fix-17408
...
removes unneeded code from netcli
2016-09-06 19:23:41 -04:00
Peter Sprygada
c228dfe692
fixes issue when piping commands through json with output not specifed
...
There is an issue when piping cli commands through json but the output
is specified as either text or the output is none and the transport is
cli. The results would not be loaded properly for conditional
evaluation. This is similar to #17422
2016-09-06 16:55:53 -04:00