diff --git a/API/launch-topo.py b/API/launch-topo.py index 5c95521..89b858d 100755 --- a/API/launch-topo.py +++ b/API/launch-topo.py @@ -6,7 +6,7 @@ def launch_topo(topofilename): virl_host = "172.16.1.1" username = password = "guest" url = "http://%s:19399/simengine/rest/launch" % virl_host - topo = open(topofilename, 'r') + topo = open(topofilename, 'r').read() headers = {'content-type': 'text/xml'} payload = {'file': 'manual@launch_topo'} diff --git a/con.sh b/con.sh deleted file mode 100755 index b2806d2..0000000 --- a/con.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh -# -# Connect to a console port on the VIRL host -# provide the TCP port as a parameter (i.e. 17000). -# -# To disconnect, press Ctrl-\ (and not Ctrl-[ to allow -# for a nested Telnet session -# -# rschmied@cisco.com -# - -gateway=$(ip route | \ - awk '/^default / {for(i=0;i