Cleaned up nmapitest, added a help file
[tests.git] / qaapi / qa / tests / slice / nmapitest.py
1 #!/usr/bin/python
2 # Module: VNET+
3 # Description:  
4 # Connect to the node manager
5 # Author: acb@cs.princeton.edu/sapanb@cs.princeton.edu
6
7 import sys
8
9 from xmlrpclib import ServerProxy
10
11 if (len(sys.argv)!=2):
12     print "[FAILED] Please pass the name of the slice this script runs in as the first argument.\n";
13 else:
14     nodemanager = ServerProxy('http://127.0.0.1:812/')
15     try:
16         nodemanager.SetLoans(sys.argv[1], [])
17     except:
18         print "[FAILED] SetLoans didn't work, probably because the packets of this connection are not getting tagged.\n";