Bug 3738: GBP coexistence fixes
[groupbasedpolicy.git] / demos / gbp-devstack / devstack-scripts / tutorial / step01.sh
1 source openrc admin admin
2
3 neutron security-group-create client_sg
4 neutron security-group-rule-create client_sg --direction ingress --ethertype IPv4
5 neutron security-group-rule-create client_sg --direction egress --ethertype IPv4
6
7 neutron security-group-create web_sg
8 neutron security-group-rule-create web_sg --direction ingress --ethertype IPv4
9 neutron security-group-rule-create web_sg --direction egress --ethertype IPv4
10
11 neutron net-create net1
12 neutron subnet-create net1 10.1.1.0/24 --name sub1 --gateway 10.1.1.1 --dns-nameservers list=true 8.8.4.4 8.8.8.8
13
14 novaboot-control.sh net1 client_sg 1 
15 novaboot-compute.sh net1 web_sg 1 
16
17 echo "control:"
18 nova list --host devstack-control
19 echo "compute:"
20 nova list --host devstack-compute-1
21