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