-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathremove_instances_5g.sh
More file actions
50 lines (35 loc) · 831 Bytes
/
remove_instances_5g.sh
File metadata and controls
50 lines (35 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
#
#
# Script for cleaning instances from OpenStack environment.
# to run the script keystonerc_admin file is sourced. If the file is in different location, path should be modified.
# Before and after running script, the status of the instances can be checked with 'nova list' command.
echo "Cleaning instances"
source ~/keystonerc_admin
echo " Removing base"
nova delete base
sleep 3s
echo " Removing INET-GW "
nova delete inet-gw
sleep 3s
echo " Removing MME1 "
nova delete mme1
sleep 3s
echo " Removing MME2 "
nova delete mme2
sleep 3s
echo " Removing MME-LB "
nova delete mme-lb
sleep 3s
echo " Removing HSS "
nova delete hss
sleep 3s
echo " Removing BT"
nova delete bt
sleep 3s
echo " Removing DP-SWITCH1 "
nova delete dp-switch1
sleep 3s
echo " Removing O5GC-GUI "
nova delete o5gc-gui
nova list