Commit Graph

14 Commits (dca3e594ac6b31c98115264f1b546213b4f0f07e)

Author SHA1 Message Date
Michael Scherer cc99fe24fc Convert the network subfolder to py3/py2.4 syntax (#3690) 9 years ago
Kei Nohguchi 14e13f68a5 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.
9 years ago
Johannes Meixner 24549ee80a network/*/*_config.py: Correct typo.
- Replace syntanx with syntax in all things network.
9 years ago
John R Barker bb9572ca86 ansible-validate-modules part 4: Enable check on ansible-modules-core (#3526)
* Call ansible-validate-modules

* Correct quotes + add newline
9 years ago
Peter Sprygada d7b6289539 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.
9 years ago
Kei Nohguchi 795b3c25cd 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
9 years ago
Peter Sprygada f46ebf2c30 Merge pull request #3141 from privateip/module_ops_command
initial add of ops_command module
9 years ago
Peter Sprygada 154fc16b0e Merge pull request #3142 from privateip/module_ops_config
initial add of ops_config module
9 years ago
Peter Sprygada b7d7bfa0b1 initial add of ops_config module
This commit adds a new module, ops_config, that allows playbook designers
to create tasks for configuring OpenSwitch over the CLI.  The module
is designed to work directly with configuration mode in OpenSwitch and
therefore only supports the CLI transport option
9 years ago
Peter Sprygada 1de18ca36b initial add of ops_command module
This commit adds a new module, ops_command, that handles executing commands
on OpenSwitch over the CLI.  Since this module is designed to work with the
OpenSwitch CLI, it only supports the CLI transport option
9 years ago
Peter Sprygada b3f232434a refactor arguments in ops_template
This commit refactors the arugments used in ops_template to be strictly
typed and handle by declarative / rest and cli based configurations.  It
also removes old arguments not supported and cleans up the documentation
strings
9 years ago
Peter Sprygada 616b7564ef fixes issue with return docstring
This commit fixes an issue with the return doc string.  The old line
was removed that would prevent the docs form being built correctly
9 years ago
Brian Coca 011c558927 corrected version added 9 years ago
Peter Sprygada 87cee15a85 initial add of ops_template module
This adds a new module ops_template used for configuring OpenSwitch
using local declarative config modules
9 years ago