print "Example: ./callrvi.py http://rvi1.nginfotpdx.net:8801" print sys.exit(255) # # Check that we have the correct arguments # if len(sys.argv) != 1 and len(sys.argv) != 2: usage() progname = sys.argv[0] if len(sys.argv) == 2: rvi_node = sys.argv[1] else: rvi_node = "http://localhost:8801" # # Setup an outbound JSON-RPC connection to the backend RVI node # Service Edge. # rvi = RVI(rvi_node) # # Retreieve services # for i in rvi.get_available_services(): print i
# # Check that we have the correct arguments # if len(sys.argv) <2: usage() progname = sys.argv[0] rvi_node = sys.argv[1] # # Setup an outbound JSON-RPC connection to the backend RVI node # Service Edge. # rvi = RVI(rvi_node) print "RVI Node: ", rvi_node # # Send the messge. # print rvi.get_available_services()
print print "Example: ./callrvi.py http://rvi1.nginfotpdx.net:8801" print sys.exit(255) # # Check that we have the correct arguments # if len(sys.argv) != 1 and len(sys.argv) != 2: usage() progname = sys.argv[0] if len(sys.argv) == 2: rvi_node = sys.argv[1] else: rvi_node = "http://localhost:8801" # # Setup an outbound JSON-RPC connection to the backend RVI node # Service Edge. # rvi = RVI(rvi_node) # # Retreieve services # for i in rvi.get_available_services(): print i
print "through an RVI node." print print "Usage:", sys.argv[0], " RVI-node" print print "Example: ./callrvi.py http://rvi1.nginfotpdx.net:8801" print sys.exit(255) # # Check that we have the correct arguments # if len(sys.argv) < 2: usage() progname = sys.argv[0] rvi_node = sys.argv[1] # # Setup an outbound JSON-RPC connection to the backend RVI node # Service Edge. # rvi = RVI(rvi_node) print "RVI Node: ", rvi_node # # Send the messge. # print rvi.get_available_services()