Add a ‘tags’ field to instance and node listing
authorIustin Pop <iustin@google.com>
Sun, 22 Jun 2008 10:57:52 +0000 (10:57 +0000)
committerIustin Pop <iustin@google.com>
Sun, 22 Jun 2008 10:57:52 +0000 (10:57 +0000)
commit130a6a6ff0223537219f70aea30ee14136e81040
tree686e2fecba63055fe8c817a32bc9116498e044ec
parent03a8dbdc0c84f0914f11e80c3570d3a8b00c6a58
Add a ‘tags’ field to instance and node listing

Currently there isn't any easy way to list all nodes or instance and
their tags; you have to query each node in turn, or list all the tags
via something like “gnt-cluster search-tags '.*'”. Of course, this is
not optimal.

The patch adds a new fields to “gnt-instance list” and “gnt-node list”
called ‘tags’, that will list the tags of the object in comma-separated
form. This field will be empty if there are no tags (when using a
separator this output can still be parsed by other scripts).

At opcode level, there is a new fields called ‘tags’ that returns a
(python) list of the object tags.

Reviewed-by: ultrotter
lib/cmdlib.py
man/gnt-instance.sgml
man/gnt-node.sgml
scripts/gnt-instance
scripts/gnt-node