major update not sure
[vsorcdistro/.git] / scripts / routerflows.sh
1 #!/bin/bash
2 #Setting address
3 curl -X POST -d '{"address":"172.16.10.1/24"}' http://localhost:8080/router/0000000000000002
4 curl -X POST -d '{"address": "172.16.30.1/24"}' http://localhost:8080/router/0000000000000002
5 curl -X POST -d '{"address": "192.168.10.1/24"}' http://localhost:8080/router/0000000000000002
6 curl -X POST -d '{"address":"172.16.20.1/24"}' http://localhost:8080/router/0000000000000001
7 curl -X POST -d '{"address": "172.16.30.30/24"}' http://localhost:8080/router/0000000000000001
8 curl -X POST -d '{"address": "192.168.30.1/24"}' http://localhost:8080/router/0000000000000003
9 curl -X POST -d '{"address": "192.168.10.20/24"}' http://localhost:8080/router/0000000000000003
10
11 #Setting default routes
12 curl -X POST -d '{"gateway": "172.16.30.1"}' http://localhost:8080/router/0000000000000001
13 curl -X POST -d '{"gateway": "172.16.30.30"}' http://localhost:8080/router/0000000000000002
14 curl -X POST -d '{"gateway": "192.168.10.1"}' http://localhost:8080/router/0000000000000003
15
16 #Setting static routes
17 curl -X POST -d '{"destination": "192.168.30.0/24", "gateway": "192.168.10.20"}' http://localhost:8080/router/0000000000000002
18