Reversed changes that were committed by accident in
commit e815cc608627c416b15c4bafcfb681501caddb2c
for files
test-network/mininet/net.sprint5-templete.py
and
web/js/main.js
diff --git a/test-network/mininet/net.sprint5-templete.py b/test-network/mininet/net.sprint5-templete.py
index 397ce4b..0fc96f1 100755
--- a/test-network/mininet/net.sprint5-templete.py
+++ b/test-network/mininet/net.sprint5-templete.py
@@ -1,10 +1,9 @@
#!/usr/bin/python
NWID=1
-NR_NODES=21
+NR_NODES=20
#Controllers=[{"ip":'127.0.0.1', "port":6633}, {"ip":'10.0.1.28', "port":6633}]
-# Controllers=[{"ip":'10.0.1.28', "port":6633}]
-Controllers=[{"ip":'127.0.0.1', "port":6633}]
+Controllers=[{"ip":'10.0.1.28', "port":6633}]
"""
Start up a Simple topology
@@ -79,8 +78,6 @@
for i in range (1, NR_NODES):
self.addLink(switch[0], switch[i])
- if i >= 2:
- self.addLink(switch[i-1], switch[i])
for i in range (NR_NODES):
self.addLink(root[i], host[i])
@@ -123,9 +120,9 @@
net.start()
- # sw=net.get('sw01.00')
- # print "center sw", sw
- # sw.attach('tapa0')
+ sw=net.get('sw01.00')
+ print "center sw", sw
+ sw.attach('tapa0')
for i in range (NR_NODES):
host[i].defaultIntf().setIP('192.168.%d.%d/16' % (NWID,i))
diff --git a/web/js/main.js b/web/js/main.js
index 51ffd1a..9fb6f66 100644
--- a/web/js/main.js
+++ b/web/js/main.js
@@ -14,7 +14,7 @@
limitations under the License.
*/
-var hackBase = "http://vm-ubuntu:9000"; // put a URL here to access a different REST server
+var hackBase = "http://localhost:9000"; // put a URL here to access a different REST server
var AppRouter = Backbone.Router.extend({