Peter Sprygada
66268dd3ec
fix up ios_command to use NetworkModule
...
* using check mode will now block all commands except show commands
* module will no longer allow config mode commands
* check args for unused values and issue warning
2016-12-08 11:24:43 -05:00
Peter Sprygada
5fe848fca2
refactor ios_config for network module
...
This refactors the ios_config module to use the network module added
in 2.2 to simplify common network functions
new features
* add src, dest arguments for working with config
* results now return flag if the config was saved or not
* adds append argument for updating the dest file (when dest is used)
2016-12-08 11:24:42 -05:00
Peter Sprygada
28a701128d
update ios_facts module to use NetworkModule
...
minor update to ios_facts to remove get_module() in favor of NetworkModule
2016-12-08 11:24:42 -05:00
Stian Vikan
714ced8e1c
Fixed delete statement for juniper_config.py #4007 #3984
2016-12-08 11:24:40 -05:00
Peter Sprygada
b0bdf09a00
refactor ios_command to use CommandRunner class
...
* fixes running commands in check mode. now only show commands are allowd
* renamed waitfor to wait_for with alias to waitfor for consistency
2016-12-08 11:24:40 -05:00
Peter Sprygada
622592c413
refactor the eos_command module to use the CommandRunner
...
* This adds support the CommandRunner to handle executing commands on
the remote device.
* It also changes the waitfor argument to wait_for to remain compatable
with other modules and adds an alias for waitfor.
* Restricts commands to show commands only when check mode is specified.
* add version_added to wait_for doc string
2016-12-08 11:24:39 -05:00
Peter Sprygada
a522c2d99f
initial add of ios_facts module
...
This adds the new module ios_facts for collect fact information from
ios devices
2016-12-08 11:24:39 -05:00
Brian Coca
01490688f4
document that get_url also takes file params
...
has for a long time, but was never documented, mode,group, owner can all be set here
2016-12-08 11:24:37 -05:00
Brian Coca
34b94ec4c4
Revert "Add mode option to the list" ( #3946 )
2016-12-08 11:24:37 -05:00
Victor Bocharsky
6037684d23
Add mode option to docstring for get_url ( #3630 )
...
Add mode option to the list
2016-12-08 11:24:37 -05:00
jctanner
48f096b52c
Use the six import for urlsplit instead of importing directly. ( #3902 )
...
Fixes https://github.com/ansible/ansible/issues/16191
2016-12-08 11:24:36 -05:00
Peter Sprygada
d8cb09a121
removes requirement for config argument to be specified in junos_facts
...
The config argument is optional and should not be required. This
removes the required attribute from the config argument.
fixes #3878
2016-12-08 11:24:36 -05:00
Toshio Kuratomi
79d12db02f
Fix the six import
2016-12-08 11:24:35 -05:00
Toshio Kuratomi
8ba0af5df3
Be sure to import urllib.parse from somewhere
2016-12-08 11:24:35 -05:00
Gabriele
1977b42956
Fixing bug, added missing param ( #3737 )
2016-12-08 11:24:31 -05:00
Wolfgang Powisch
20d9c0c484
Update junos_facts.py ( #3759 )
2016-12-08 11:24:31 -05:00
Michael Scherer
c0217e14a7
Convert the network subfolder to py3/py2.4 syntax ( #3690 )
2016-12-08 11:24:29 -05:00
Mike Bryant
0027158b74
junos_template: Simplify arguments. Fixes #3621
...
Simplify the arguments to junos_template, such that
merge/overwrite/replace can be selected easily.
2016-12-08 11:24:29 -05:00
Kei Nohguchi
d738ad0ee0
ops_template.py: Change integer key into stirng
...
This fix passing the update variable to the str()
so that it avoids the exception when ops.dc.read()
returns a dictionary which contains non-string keys.
This is due to the fact that some of the key types in
OpenSwitch schema are actually defined as integer
and ops.dc declerative config module encode those
in integer inside the dictionary. This could be
the right encoding from the schema point of view
but someone needs to convert it to the string
somewhere, as JSON key should be string.
2016-12-08 11:24:29 -05:00
Michael Scherer
abfc8d36a8
Add a test on jnpr.junos.utils.sw presence ( #3666 )
2016-12-08 11:24:28 -05:00
Toshio Kuratomi
291e00d43a
Docs fixes
2016-12-08 11:24:28 -05:00
Brian Coca
ca7defeee5
made note about slurp memory consumption
2016-12-08 11:24:27 -05:00
Johannes Meixner
af634ff5c7
network/*/*_config.py: Correct typo.
...
- Replace syntanx with syntax in all things network.
2016-12-08 11:24:27 -05:00
Scott Butler
e606a1237b
Fixed typos
2016-12-08 11:24:27 -05:00
John R Barker
d13046a905
ansible-validate-modules part 4: Enable check on ansible-modules-core ( #3526 )
...
* Call ansible-validate-modules
* Correct quotes + add newline
2016-12-08 11:24:26 -05:00
Peter Sprygada
bf200458d3
fixes docstring issue for junos_config arguments
...
The docstring was incorrectly merged with some old entries that will
cause the documentation not to build correclty. It is now fixed.
2016-12-08 11:24:24 -05:00
jedelman8
28db5b7dd1
add nxos_interface
2016-12-08 11:24:24 -05:00
James Cammarata
124c4b94c1
Remove extraneous debug stuff from uri module left over from testing
2016-12-08 11:24:23 -05:00
James Cammarata
50cd8b0aa5
Make sure uri output contains json output when a non-200 status is returned
...
Prior to the switch to the urls.py code, non-200 responses contained
a 'json' value when the content-type was JSON. This fix restores that
field upon a non-2xx response.
Fixes ansible/ansible#15555
2016-12-08 11:24:23 -05:00
Nathaniel Case
75dbe9f1e8
Remove unnecessary exception from nxos_command ( #3521 )
2016-12-08 11:24:23 -05:00
Peter Sprygada
8729bcde3f
adds new module junos_package
...
the new module allows playbook designers to manage packages on remote
devices running junos.
2016-12-08 11:24:22 -05:00
Peter Sprygada
ef794d95e5
adds new module ops_facts
...
This adds a new module for collect device facts from remote devices
running OpenSwitch. This module is useful when collecting fact information
over CLI transport.
2016-12-08 11:24:22 -05:00
GGabriele
b375f61d2b
Fixed doc
2016-12-08 11:24:22 -05:00
GGabriele
9aeaa70e32
Changed module name to nxos_facts
2016-12-08 11:24:22 -05:00
GGabriele
693f7c938e
Fixing bugs
2016-12-08 11:24:22 -05:00
GGabriele
84ecc21677
Adding nxos_ip_interface
2016-12-08 11:24:22 -05:00
GGabriele
02744e7cab
Adding nxos_vrrp
2016-12-08 11:24:22 -05:00
GGabriele
f4fd69bcff
Adding nxos_ping
2016-12-08 11:24:22 -05:00
jedelman8
be91a5622a
fix index for portchannel
2016-12-08 11:24:22 -05:00
GGabriele
10238bbb06
fix conditional for py24
2016-12-08 11:24:22 -05:00
jedelman8
cda210c3f9
fix docstring
2016-12-08 11:24:22 -05:00
jedelman8
ad9ede5d4c
force travis build
2016-12-08 11:24:21 -05:00
jedelman8
89aabffee8
minor test
2016-12-08 11:24:21 -05:00
jedelman8
01b8f7db5e
update return doc string
2016-12-08 11:24:21 -05:00
GGabriele
66eea14df2
Fixed RETURN string
2016-12-08 11:24:21 -05:00
GGabriele
0798968596
Fixed RETURN string and added notes
2016-12-08 11:24:21 -05:00
GGabriele
97577df048
Fixing nxos_vrf
2016-12-08 11:24:21 -05:00
GGabriele
62b0b48f58
Adding nxos_vrf_interface
2016-12-08 11:24:21 -05:00
GGabriele
2c43f6b35c
Adding nxos_vrf
2016-12-08 11:24:21 -05:00
GGabriele
b4d69262ed
Adding nxos_get_facts
2016-12-08 11:24:21 -05:00