023629b7c990ce28098ae64a4f145760fb08c308
[tests.git] / system / hooks / 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 import os
9
10 from xmlrpclib import ServerProxy
11
12 homedir=os.environ['HOME']
13 slice_name = homedir.rsplit('/')[0]
14
15 nodemanager = ServerProxy('http://127.0.0.1:812/')
16 try:
17     nodemanager.SetLoans(slice_name, [])
18 except:
19     print "[FAILED] SetLoans didn't work, probably because the packets of this connection are not getting tagged.\n";