summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorMagnus Feuer <mfeuer@jaguarllandrover.com>2016-02-01 15:55:52 -0800
committerMagnus Feuer <mfeuer@jaguarllandrover.com>2016-02-01 15:55:52 -0800
commit713055c80b3a683b1225284512dae3b370bd2410 (patch)
tree795c73cff7c4d171f4ff3a477adddf93c7f3acbf /python
parent0cf1a006c3c482748de4447c0fd2b9c29260d560 (diff)
downloadrvi_core-713055c80b3a683b1225284512dae3b370bd2410.tar.gz
Moved scripts to new default port 9001
Diffstat (limited to 'python')
-rwxr-xr-xpython/rvi_call.py6
-rwxr-xr-xpython/rvi_call_ws.py4
-rwxr-xr-xpython/rvi_get_services.py6
-rwxr-xr-xpython/rvi_service.py8
-rw-r--r--python/rvi_service_ws.py8
5 files changed, 16 insertions, 16 deletions
diff --git a/python/rvi_call.py b/python/rvi_call.py
index 746b4ee..6fb8b55 100755
--- a/python/rvi_call.py
+++ b/python/rvi_call.py
@@ -19,11 +19,11 @@ import getopt
def usage():
print "Usage:", sys.argv[0], "[-n RVI-node] service key=val ..."
print " RVI-node DNS name or IP of host running RVI. "
- print " default: http://localhost:8801"
+ print " default: http://localhost:9001"
print " service Service to invoke in RVI."
print " key=val Named arguments to provide to service."
print
- print "Example: ./callrvi.py -n http://rvi1.nginfotpdx.net:8801 \\"
+ print "Example: ./callrvi.py -n http://rvi1.nginfotpdx.net:9001 \\"
print " jlr.com/vin/aaron/4711/test/ping \\"
print " arg1=val1 arg2=val2"
@@ -36,7 +36,7 @@ def usage():
opts, args= getopt.getopt(sys.argv[1:], "n:")
-rvi_node = "http://localhost:8801"
+rvi_node = "http://localhost:9001"
for o, a in opts:
if o == "-n":
rvi_node = a
diff --git a/python/rvi_call_ws.py b/python/rvi_call_ws.py
index ab87d52..c897309 100755
--- a/python/rvi_call_ws.py
+++ b/python/rvi_call_ws.py
@@ -6,7 +6,7 @@ import json
opts, args = getopt.getopt(sys.argv[1:], "n:")
-host = 'ws://localhost:8808'
+host = 'ws://localhost:9008'
for o, a in opts:
if o == "-n":
@@ -36,4 +36,4 @@ payload['params'] = {'service_name':service, 'timeout':(int(time.time())+60), 'p
payload['id'] = "1"
payload['method'] = 'message'
-ws.send(json.dumps(payload)) \ No newline at end of file
+ws.send(json.dumps(payload))
diff --git a/python/rvi_get_services.py b/python/rvi_get_services.py
index eeadcdc..100ecf0 100755
--- a/python/rvi_get_services.py
+++ b/python/rvi_get_services.py
@@ -21,9 +21,9 @@ def usage():
print "through an RVI node."
print
print "Usage:", sys.argv[0], " [RVI-node]"
- print "Default RVI node is http://127.0.0.1:8801"
+ print "Default RVI node is http://127.0.0.1:9001"
print
- print "Example: ./callrvi.py http://rvi1.nginfotpdx.net:8801"
+ print "Example: ./callrvi.py http://rvi1.nginfotpdx.net:9001"
print
sys.exit(255)
@@ -39,7 +39,7 @@ progname = sys.argv[0]
if len(sys.argv) == 2:
rvi_node = sys.argv[1]
else:
- rvi_node = "http://localhost:8801"
+ rvi_node = "http://localhost:9001"
#
# Setup an outbound JSON-RPC connection to the backend RVI node
diff --git a/python/rvi_service.py b/python/rvi_service.py
index 0d6ec6d..25a45c9 100755
--- a/python/rvi_service.py
+++ b/python/rvi_service.py
@@ -18,7 +18,7 @@ import getopt
def usage():
print "Usage:", sys.argv[0], "[-n <rvi_url>] <service_name>"
print " <rvi_url> URL of Service Edge on a local RVI node."
- print " Default: http://localhost:8801"
+ print " Default: http://localhost:9001"
print " <service_name> URL of Service to register"
print
print "The RVI Service Edge URL can be found in"
@@ -28,7 +28,7 @@ def usage():
print "The Service Edge URL is also logged as a notice when the"
print "RVI node is started."
print
- print "Example: ./rvi_service.py -n http://rvi1.nginfotpdx.net:8801 /test/some_service"
+ print "Example: ./rvi_service.py -n http://rvi1.nginfotpdx.net:9001 /test/some_service"
sys.exit(255)
@@ -39,7 +39,7 @@ def usage():
# the sender has to match the argument names.
# For example:
-# rvi_call.py http://localhost:8801 jlr.com/vin/test a=1 b=2 c=3 ->
+# rvi_call.py http://localhost:9001 jlr.com/vin/test a=1 b=2 c=3 ->
# def service(a,b,c)
#
def service_invoked(**args):
@@ -75,7 +75,7 @@ def services_unavailable(**args):
#
opts, args= getopt.getopt(sys.argv[1:], "n:")
-rvi_node_url = "http://localhost:8801"
+rvi_node_url = "http://localhost:9001"
for o, a in opts:
if o == "-n":
rvi_node_url = a
diff --git a/python/rvi_service_ws.py b/python/rvi_service_ws.py
index 9ddfbf3..8d85981 100644
--- a/python/rvi_service_ws.py
+++ b/python/rvi_service_ws.py
@@ -21,14 +21,14 @@ import getopt
def usage():
print "Usage:", sys.argv[0], "[-n <rvi_url>] <service_name>"
print " <rvi_url> URL of Service Edge on a local RVI node."
- print " Default: ws://localhost:8808"
+ print " Default: ws://localhost:9008"
print " <service_name> URL of Service to register"
print
print "The Service Edge URL is logged as a notice when the"
print "RVI node is started."
print
- print "Example: ./rvi_service_ws.py -n ws://rvi1.nginfotpdx.net:8808 /test/some_service"
+ print "Example: ./rvi_service_ws.py -n ws://rvi1.nginfotpdx.net:9008 /test/some_service"
sys.exit(255)
@@ -39,7 +39,7 @@ def usage():
# the sender has to match the argument names.
# For example:
-# rvi_call.py http://localhost:8801 jlr.com/vin/test a=1 b=2 c=3 ->
+# rvi_call.py http://localhost:9001 jlr.com/vin/test a=1 b=2 c=3 ->
# def service(a,b,c)
#
def service_invoked(**args):
@@ -75,7 +75,7 @@ def services_unavailable(**args):
#
opts, args= getopt.getopt(sys.argv[1:], "n:")
-rvi_node_url = "ws://localhost:8808"
+rvi_node_url = "ws://localhost:9008"
for o, a in opts:
if o == "-n":
rvi_node_url = a