New module - meraki_config_template (#41633)

* Implement configuration template management
- Queries or removes templates
- Can bind or unbind templates to networks
- Module is idempotent only for binding and unbinding
- Meraki does not allow template creation via API
- Integration test is tedious b/c previous bullet point
- Fixed bug in construct_path() so it won't set self.function

* PEP8 changes

* Re-enable some integration tests, use variables, and fix broken code
This commit is contained in:
Kevin Breit
2018-06-20 02:47:31 -05:00
committed by Dag Wieers
parent 618c3c508f
commit b8c39a0875
4 changed files with 346 additions and 1 deletions

View File

@@ -193,7 +193,7 @@ class MerakiModule(object):
"""Downloads all networks in an organization."""
if org_name:
org_id = self.get_org_id(org_name)
path = self.construct_path('get_all', org_id=org_id)
path = self.construct_path('get_all', org_id=org_id, function='network')
r = self.request(path, method='GET')
return r