+router.get('/gettopo', (req, res) => {
+ var sys = require('sys')
+ var exec = require('child_process').exec;
+ var child;
+ child = exec("curl localhost:8080/topology", function(error, stdout, stderr) {
+ console.log("gettopo");
+ res.send(stdout);
+ });
+});
+
+router.get('/startcontroller', (req, res) => {
+ var sys = require('sys')
+ var exec = require('child_process').spawn;
+ var child;
+ chlid = spawn('python', ['-f','./../pypy.py']);
+
+ pyProg.stdout.on('data', function(data) {