added demos to the repo
[groupbasedpolicy.git] / demos / gbp-devstack / devstack-scripts / tests / testfloatingip.sh
1 source openrc admin admin
2 sudo ovs-vsctl show
3 neutron security-group-create client_sg
4 neutron security-group-rule-create client_sg --direction egress --ethertype IPv4
5 neutron security-group-rule-create client_sg --direction ingress --ethertype IPv4
6
7 neutron net-create net1
8 neutron subnet-create net1 10.1.1.0/24 --name sub1 --gateway 10.1.1.1
9 neutron router-create router1
10 neutron router-interface-add router1 sub1
11 neutron net-create drexternal --provider:network_type flat --provider:physical_network dr-external --router:external
12 neutron subnet-create --name extsubnet --allocation-pool start=192.168.111.50,end=192.168.111.55  --gateway 192.168.111.100 --disable-dhcp drexternal 192.168.111.0/24
13 neutron router-gateway-set router1 drexternal
14 neutron floatingip-create drexternal
15 neutron floatingip-create drexternal
16 testnovaboot-control.sh net1 client_sg 1
17 testnovaboot-compute.sh net1 client_sg 2
18 neutron port-list
19 neutron floatingip-list
20
21 echo "neutron floatingip-associate <floatingIPID> <PORTID>
22
23 neutron floatingip-associate"
24