added demos to the repo
[groupbasedpolicy.git] / demos / gbp-devstack / devstack-scripts / tutorial / step01.sh
diff --git a/demos/gbp-devstack/devstack-scripts/tutorial/step01.sh b/demos/gbp-devstack/devstack-scripts/tutorial/step01.sh
new file mode 100644 (file)
index 0000000..86cc26a
--- /dev/null
@@ -0,0 +1,21 @@
+source openrc admin admin
+
+neutron security-group-create client_sg
+neutron security-group-rule-create client_sg --direction ingress --ethertype IPv4
+neutron security-group-rule-create client_sg --direction egress --ethertype IPv4
+
+neutron security-group-create web_sg
+neutron security-group-rule-create web_sg --direction ingress --ethertype IPv4
+neutron security-group-rule-create web_sg --direction egress --ethertype IPv4
+
+neutron net-create net1
+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
+
+novaboot-control.sh net1 client_sg 1 
+novaboot-compute.sh net1 web_sg 1 
+
+echo "control:"
+nova list --host devstack-control
+echo "compute:"
+nova list --host devstack-compute-1
+