jbjohnso
d269be6f8b
Implement 'unset' on group attributes
2014-04-22 16:23:33 -04:00
jbjohnso
49074bec74
General code cleanup
2014-04-21 10:48:18 -04:00
Jarrod Johnson
92512da79f
Apply IBM 2014 copyright and Apache 2 license to project
2014-04-07 16:43:39 -04:00
Jarrod Johnson
f326a03d33
Fix attributes plugin for api rename
2014-03-28 15:29:48 -04:00
Jarrod Johnson
811ca61747
Fix problem where broken expressions were not gracefully handled
...
Now when expressions can not be completed, the reason is presented as 'broken'.
Additionally, when unsetting a value that would affect expressions,
perform appropriate changes.
2014-03-03 14:48:46 -05:00
Jarrod Johnson
ea7d3a268c
Implement 'unset' in confetty interactive cli.
...
Provide a means to clear node specific settings so that inheritance can be restored.
In JSON, send a null as a value for a parameter instead of a string or 'object'.
2014-02-22 21:53:34 -05:00
Jarrod Johnson
e236260c3b
Have console assume ipmi if no data given, like hardwaremanagement
2014-02-22 19:28:41 -05:00
Jarrod Johnson
f6ed5b5e14
Have confetty interactive attribute show be more informative
2014-02-22 19:12:42 -05:00
Jarrod Johnson
70b7b62c0f
Give messaging layer full info about attributes in attributes plugin.
...
Messaging layer was unable to contemplate adding info about inheritance and expressions.
2014-02-22 18:20:07 -05:00
Jarrod Johnson
a68deebec8
Improve the get_nodegroup_attribute to be more full featured
...
Also, move masking of the _expressionkeys attribute into the core
of the class rather than working around it.
2014-02-19 20:36:39 -05:00
Jarrod Johnson
f2c09795ff
Fix expression based callout of other keys
...
The '_' prefixed attributes suggest more care should be taken.
2014-02-19 20:24:51 -05:00
Jarrod Johnson
b823bc37d2
Fixup unknown attribute handling.
...
For one, prevent unknown attributes from getting into configmanager from now on.
Additionally, have the attributes plugin manage to convey bad attributes when
encountered.
2014-02-19 19:10:58 -05:00
Jarrod Johnson
b6853cfbe1
Fix display of group attributes
...
Something still seems off about it, but it is self contained to attributes plugin for now.
2014-02-18 13:48:26 -05:00
Jarrod Johnson
2b6188e0b6
Add nodegroup management to API
...
Have nodegroup attributes exposed via API so that they are at
least nominally useful
2014-02-18 13:22:07 -05:00
Jarrod Johnson
c77eb5be3b
Have configmanager protect against unrecognized data.
...
When doing a set, check the keynames and value types as
appropriate. raise ValueError in the configmanager case
since it could be code or human mistake. attributes plugin
then catches this error and propogates it up as an InvalidArgumentException
if it is just trying to pass in data from user.
2014-02-13 12:58:03 -05:00
Jarrod Johnson
0d425f1f9f
Add cli support for 'show'
...
confetty interactive mode can now do 'show' (aka read, retrieve, whatever) on
more abritrary resources.
2014-02-10 19:36:18 -05:00
Jarrod Johnson
7752bbbc27
Enumerate nodegroups
2013-11-13 15:12:57 -05:00
Jarrod Johnson
5e406d6fa1
Have attribute set return some data
...
Handle html form arrays with blanks, removing blank values
(more complex usage requires JSON)
2013-11-13 14:52:32 -05:00
Jarrod Johnson
ecc7c21fc4
Support list style attributes (notably groups) in the api explorer
2013-11-13 10:36:43 -05:00
Jarrod Johnson
215acdf4a7
Have rest explorer actually mostly work as expected
2013-11-07 14:39:34 -05:00
Jarrod Johnson
659f85eaa0
Add support for showing all as well as current attributes
2013-11-03 10:36:03 -05:00
Jarrod Johnson
58482c6090
Implement ability to change settings for an existing node
2013-11-03 10:21:54 -05:00
Jarrod Johnson
3fa61dc8f9
Wire up input to plugins for create/read
2013-11-02 19:45:10 -04:00
Jarrod Johnson
04d2cd4ba3
Add attribute retrieval facility
2013-11-02 18:24:04 -04:00