Commit Graph

181 Commits (3d5f84c528175f2e3a6dfe359fd68fe6ccdbee34)

Author SHA1 Message Date
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
GGabriele 95992b91bd Addng nxos_feature 2016-12-08 11:24:21 -05:00
jedelman8 6ae109630e add nxos_vlan 2016-12-08 11:24:21 -05:00
jedelman8 5ef3a6430a add nxos_switchport 2016-12-08 11:24:21 -05:00
Peter Sprygada a9b664c796 add support for netconf to junos_config
The junos_config module now supports the netconf transport.
2016-12-08 11:24:21 -05:00
Peter Sprygada abb008dca7 fixes docstring format in junos_command 2016-12-08 11:24:21 -05:00
Peter Sprygada 89ebc8b066 adds config_format argument to the facts module
this change adds config_format argument with choices of xml, set or text to
specify the desired format of the config returned from the remote device.  The
default value is text
2016-12-08 11:24:21 -05:00
Peter Sprygada 9d521aa7e0 Merge pull request #9 from dgarros/junos_modules
Add support for xml, set and text format for config
2016-12-08 11:24:21 -05:00