Skip to content

Commandmixin.variables#432

Merged
swormke merged 6 commits intoF5Networks:0.1from
wojtek0806:commandmixin.variables
May 20, 2016
Merged

Commandmixin.variables#432
swormke merged 6 commits intoF5Networks:0.1from
wojtek0806:commandmixin.variables

Conversation

@wojtek0806
Copy link
Copy Markdown
Contributor

Issues:
Fixes #381 also addreses some of the files listed in #378

f5\bigip\cm__init__.py
f5\bigip\sys\config.py

Problem:
Since we have introduced CommandMixin the allowed commands were not stored as part of meta data.

Analysis:
This patch adds the metadata ._meta_data['allowed_commands'] into ResourceBase class. The reason behind it is that commands can be run against some Collections as well as Resources.
There are few other classes which have hard coded command in the json payload which need to be changed later to fully implement fox for #378

Tests:
Flake8
Functional Tests

@zancas
Copy link
Copy Markdown
Contributor

zancas commented May 19, 2016

This looks pretty good, but it needs tests!

@swormke
Copy link
Copy Markdown
Contributor

swormke commented May 20, 2016

@zancas has been super busy, so I looked at this and am going to merge it because looks like you two have worked on it together and it is pretty straight forward.

@swormke swormke merged commit 59303eb into F5Networks:0.1 May 20, 2016
@wojtek0806 wojtek0806 deleted the commandmixin.variables branch May 23, 2016 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants