Commit Graph

171 Commits (09066f1518bea7b92865196ea2fe64f45e7ce73c)

Author SHA1 Message Date
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
Peter Sprygada 1985115e55 adds new module junos_netconf used for configuring netconf services
This module allows playbook operators to configure the netconf service in
junos for use with other juniper modules.
2016-12-08 11:24:20 -05:00
Peter Sprygada 2072922875 adds new junos_facts module
The junos_facts module will collect basic system inforamtion about remote
devices running the Junos operating system
2016-12-08 11:24:20 -05:00
Peter Sprygada 871e586ce3 add support for netconf to junos_template
This commit adds support for sending full syntanx junos configurations using
junos_template and netconf
2016-12-08 11:24:20 -05:00
Peter Sprygada 923974e3c0 add support to junos_command module for netconf transport
This adds support for using netconf to the junos_command option and removes
the use of cli as a transport
2016-12-08 11:24:20 -05:00
jctanner 56f5ca37af Fix status check on get_url with file schemas and update the examples. (#3512)
Addresses #3511
2016-12-08 11:24:20 -05:00
Brian Coca 34a3bc043a removed usless default doc 2016-12-08 11:24:19 -05:00
Justin Kennedy ab4b8e0847 Updating examples to include required fields (#3242)
Updated examples to include required fields (host, username).  Also updated src option to be listed as required.
2016-12-08 11:24:19 -05:00
Kei Nohguchi fc5ade4020 ops_template.py: Taking care of the JSON src variable (#3313)
* ops_template.py: Taking care of the JSON src variable

* ops_template.py: Specify type='str' for src argument to be explicit
2016-12-08 11:24:18 -05:00
Patrick Ogenstad d4d86b4bc6 Fix documentation example, missing ")" 2016-12-08 11:24:18 -05:00
John Barker d531eb146d Replace BOOLEANS with true/false 2016-12-08 11:24:17 -05:00