X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fclientbin%2FsfiListNodes.py;fp=sfa%2Fclientbin%2FsfiListNodes.py;h=0000000000000000000000000000000000000000;hb=a0b08c3177b6273ad22f3882cd62495743ed404c;hp=17cb3414a3f6106dc656527785902b0c5628f7d6;hpb=4bb9f60eb04e6e7f63f22e1e384c6a306bae05bc;p=sfa.git diff --git a/sfa/clientbin/sfiListNodes.py b/sfa/clientbin/sfiListNodes.py deleted file mode 100755 index 17cb3414..00000000 --- a/sfa/clientbin/sfiListNodes.py +++ /dev/null @@ -1,32 +0,0 @@ -#! /usr/bin/env python - -import sys - -from sfa.client.sfi_commands import Commands - -from sfa.rspecs.rspec import RSpec - -from sfa.planetlab.plxrn import xrn_to_hostname - -command = Commands(usage="%prog [options]", - description="List all nodes in the RSpec. " + - "Use this to display the list of nodes on which it is " + - "possible to create a slice.") -command.prep() - -if command.opts.infile: - rspec = RSpec(command.opts.infile) - nodes = rspec.version.get_nodes() - if command.opts.outfile: - sys.stdout = open(command.opts.outfile, 'w') - - for node in nodes: - hostname = None - if node.get('component_id'): - hostname = xrn_to_hostname(node['component_id']) - if hostname: - print hostname - - - -