4 from sfa.util.rspecHelper import RSpec, Commands
6 command = Commands(usage="%prog [options]",
7 description="List all slivers in the RSpec. " +
8 "Use this to display the list of nodes belonging to " +
10 command.add_show_attributes_option()
13 nodes = command.rspec.get_sliver_list()
14 if command.opts.showatt:
15 defaults = command.rspec.get_default_sliver_attributes()
18 for (name, value) in defaults:
19 print " %s: %s" % (name, value)
23 if command.opts.showatt:
24 atts = command.rspec.get_sliver_attributes(node)
25 for (name, value) in atts:
26 print " %s: %s" % (name, value)