added demos to the repo
[groupbasedpolicy.git] / demos / gbp-devstack / devstack-scripts / tutorial / multirouter1.sh
1 neutron security-group-create client_sg
2 neutron security-group-rule-create client_sg --direction egress --protocol tcp --port-range-min 80 --port-range-max 80
3 neutron security-group-rule-create client_sg --direction egress --protocol tcp --port-range-min 443 --port-range-max 443
4 neutron security-group-rule-create client_sg --direction egress --protocol tcp --port-range-min 5004 --port-range-max 5004
5 neutron security-group-rule-create client_sg --direction egress --protocol udp --port-range-min 5004 --port-range-max 5004
6 neutron security-group-rule-create client_sg --direction ingress --ethertype IPv4
7
8 neutron security-group-create video_sg
9 neutron security-group-rule-create video_sg --direction ingress --protocol tcp --port-range-min 80 --port-range-max 80
10 neutron security-group-rule-create video_sg --direction ingress --protocol tcp --port-range-min 443 --port-range-max 443
11 neutron security-group-rule-create video_sg --direction ingress --protocol tcp --port-range-min 5004 --port-range-max 5004
12 neutron security-group-rule-create video_sg --direction ingress --protocol udp --port-range-min 5004 --port-range-max 5004
13 neutron security-group-rule-create video_sg --direction egress --ethertype IPv4
14
15 neutron security-group-create game_sg
16 neutron security-group-rule-create game_sg --direction egress --ethertype IPv4
17 neutron security-group-rule-create game_sg --direction ingress --protocol tcp --port-range-min 443 --port-range-max 443
18
19 neutron net-create net1
20 neutron subnet-create net1 10.1.1.0/24 --name sub1 --gateway 10.1.1.1
21 neutron net-create net2
22 neutron subnet-create net2 20.1.1.0/24 --name sub2 --gateway 20.1.1.1
23 neutron net-create net3
24 neutron subnet-create net3 30.1.1.0/24 --name sub3 --gateway 30.1.1.1
25 neutron net-create net4
26 neutron subnet-create net4 40.1.1.0/24 --name sub4 --gateway 40.1.1.1
27 neutron net-create net5
28 neutron subnet-create net5 50.1.1.0/24 --name sub5 --gateway 50.1.1.1
29
30 neutron router-create r1
31 neutron router-interface-add r1 sub1
32 neutron router-interface-add r1 sub2
33
34 novaboot.sh net1 client_sg 1 #"bekind" 
35 novaboot.sh net1 video_sg 1 
36 novaboot.sh net1 game_sg 1 
37
38 novaboot.sh net2 client_sg 2 
39 novaboot.sh net2 video_sg 2 
40 novaboot.sh net2 game_sg 2 #"bekind"
41
42 neutron router-create r2
43 neutron router-interface-add r2 sub3
44 neutron router-interface-add r2 sub4
45 neutron router-interface-add r2 sub5
46
47 novaboot.sh net3 client_sg 3 
48 novaboot.sh net3 client_sg 4
49
50 novaboot.sh net4 video_sg 3
51 novaboot.sh net4 game_sg 3
52
53 novaboot.sh net5 video_sg 4 
54 novaboot.sh net5 game_sg 4 
55
56 echo "control:"
57 nova list --host devstack-control
58 echo "compute:"
59 nova list --host devstack-compute-1
60