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