adding new client cli tools
[sfa.git] / sfa / client / sfiListNodes.py
diff --git a/sfa/client/sfiListNodes.py b/sfa/client/sfiListNodes.py
new file mode 100755 (executable)
index 0000000..df14fe3
--- /dev/null
@@ -0,0 +1,17 @@
+#! /usr/bin/env python
+
+import sys
+from sfa.util.rspecHelper import RSpec, Commands
+
+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()
+
+nodes = command.rspec.get_node_list()
+for node in nodes:
+    print node
+
+
+