4 from sfa.client.sfi_commands import Commands
5 from sfa.rspecs.rspec import RSpec
7 command = Commands(usage="%prog [options]",
8 description="List all nodes in the RSpec. " +
9 "Use this to display the list of nodes on which it is " +
10 "possible to create a slice.")
13 if command.opts.infile:
14 rspec = RSpec(command.opts.infile)
15 nodes = rspec.version.get_nodes()
16 if command.opts.outfile:
17 sys.stdout = open(command.opts.outfile, 'w')