This commit is contained in:
Andy Chu 2018-07-30 17:34:14 +00:00 committed by GitHub
commit e61b3638cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 90 additions and 81 deletions

168
algo
View file

@ -435,49 +435,52 @@ Name the vpn server:
8. Western US (Oregon A) 8. Western US (Oregon A)
9. Western US (Oregon B) 9. Western US (Oregon B)
10. Western US (Oregon C) 10. Western US (Oregon C)
11. Eastern US (Northern Virginia A) 11. Western US (Los Angeles A)
12. Eastern US (Northern Virginia B) 12. Western US (Los Angeles B)
13. Eastern US (Northern Virginia C) 13. Western US (Los Angeles C)
14. Eastern US (South Carolina B) 14. Eastern US (Northern Virginia A)
15. Eastern US (South Carolina C) 15. Eastern US (Northern Virginia B)
16. Eastern US (South Carolina D) 16. Eastern US (Northern Virginia C)
17. South America East (São Paulo A) 17. Eastern US (South Carolina B)
18. South America East (São Paulo B) 18. Eastern US (South Carolina C)
19. South America East (São Paulo C) 19. Eastern US (South Carolina D)
20. Northern Europe (Hamina A) 20. South America East (São Paulo A)
21. Northern Europe (Hamina B) 21. South America East (São Paulo B)
22. Northern Europe (Hamina C) 22. South America East (São Paulo C)
23. Western Europe (Belgium B) 23. Northern Europe (Hamina A)
24. Western Europe (Belgium C) 24. Northern Europe (Hamina B)
25. Western Europe (Belgium D) 25. Northern Europe (Hamina C)
26. Western Europe (London A) 26. Western Europe (Belgium B)
27. Western Europe (London B) 27. Western Europe (Belgium C)
28. Western Europe (London C) 28. Western Europe (Belgium D)
29. Western Europe (Frankfurt A) 29. Western Europe (London A)
30. Western Europe (Frankfurt B) 30. Western Europe (London B)
31. Western Europe (Frankfurt C) 31. Western Europe (London C)
32. Western Europe (Netherlands A) 32. Western Europe (Frankfurt A)
33. Western Europe (Netherlands B) 33. Western Europe (Frankfurt B)
34. Western Europe (Netherlands C) 34. Western Europe (Frankfurt C)
35. South Asia (Mumbai A) 35. Western Europe (Netherlands A)
36. South Asia (Mumbai B) 36. Western Europe (Netherlands B)
37. South Asia (Mumbai C) 37. Western Europe (Netherlands C)
38. Southeast Asia (Singapore A) 38. South Asia (Mumbai A)
39. Southeast Asia (Singapore B) 39. South Asia (Mumbai B)
40. Southeast Asia (Singapore C) 40. South Asia (Mumbai C)
41. East Asia (Taiwan A) 41. Southeast Asia (Singapore A)
42. East Asia (Taiwan B) 42. Southeast Asia (Singapore B)
43. East Asia (Taiwan C) 43. Southeast Asia (Singapore C)
44. Northeast Asia (Tokyo A) 44. East Asia (Taiwan A)
45. Northeast Asia (Tokyo B) 45. East Asia (Taiwan B)
46. Northeast Asia (Tokyo C) 46. East Asia (Taiwan C)
47. Australia (Sydney A) 47. Northeast Asia (Tokyo A)
48. Australia (Sydney B) 48. Northeast Asia (Tokyo B)
49. Australia (Sydney C) 49. Northeast Asia (Tokyo C)
50. Australia (Sydney A)
51. Australia (Sydney B)
52. Australia (Sydney C)
Please choose the number of your zone. Press enter for default (#20) zone. Please choose the number of your zone. Press enter for default (#26) zone.
[20]: " -r region [26]: " -r region
region=${region:-20} region=${region:-26}
case "$region" in case "$region" in
1) zone="northamerica-northeast1-a" ;; 1) zone="northamerica-northeast1-a" ;;
@ -490,45 +493,48 @@ Please choose the number of your zone. Press enter for default (#20) zone.
8) zone="us-west1-a" ;; 8) zone="us-west1-a" ;;
9) zone="us-west1-b" ;; 9) zone="us-west1-b" ;;
10) zone="us-west1-c" ;; 10) zone="us-west1-c" ;;
11) zone="us-east4-a" ;; 11) zone="us-west2-a" ;;
12) zone="us-east4-b" ;; 12) zone="us-west2-b" ;;
13) zone="us-east4-c" ;; 13) zone="us-west2-c" ;;
14) zone="us-east1-b" ;; 14) zone="us-east4-a" ;;
15) zone="us-east1-c" ;; 15) zone="us-east4-b" ;;
16) zone="us-east1-d" ;; 16) zone="us-east4-c" ;;
17) zone="southamerica-east1-a" ;; 17) zone="us-east1-b" ;;
18) zone="southamerica-east1-b" ;; 18) zone="us-east1-c" ;;
19) zone="southamerica-east1-c" ;; 19) zone="us-east1-d" ;;
20) zone="europe-north1-a" ;; 20) zone="southamerica-east1-a" ;;
21) zone="europe-north1-b" ;; 21) zone="southamerica-east1-b" ;;
22) zone="europe-north1-c" ;; 22) zone="southamerica-east1-c" ;;
23) zone="europe-west1-b" ;; 23) zone="europe-north1-a" ;;
24) zone="europe-west1-c" ;; 24) zone="europe-north1-b" ;;
25) zone="europe-west1-d" ;; 25) zone="europe-north1-c" ;;
26) zone="europe-west2-a" ;; 26) zone="europe-west1-b" ;;
27) zone="europe-west2-b" ;; 27) zone="europe-west1-c" ;;
28) zone="europe-west2-c" ;; 28) zone="europe-west1-d" ;;
29) zone="europe-west3-a" ;; 29) zone="europe-west2-a" ;;
30) zone="europe-west3-b" ;; 30) zone="europe-west2-b" ;;
31) zone="europe-west3-c" ;; 31) zone="europe-west2-c" ;;
32) zone="europe-west4-a" ;; 32) zone="europe-west3-a" ;;
33) zone="europe-west4-b" ;; 33) zone="europe-west3-b" ;;
34) zone="europe-west4-c" ;; 34) zone="europe-west3-c" ;;
35) zone="asia-south1-a" ;; 35) zone="europe-west4-a" ;;
36) zone="asia-south1-b" ;; 36) zone="europe-west4-b" ;;
37) zone="asia-south1-c" ;; 37) zone="europe-west4-c" ;;
38) zone="asia-southeast1-a" ;; 38) zone="asia-south1-a" ;;
39) zone="asia-southeast1-b" ;; 39) zone="asia-south1-b" ;;
40) zone="asia-southeast1-c" ;; 40) zone="asia-south1-c" ;;
41) zone="asia-east1-a" ;; 41) zone="asia-southeast1-a" ;;
42) zone="asia-east1-b" ;; 42) zone="asia-southeast1-b" ;;
43) zone="asia-east1-c" ;; 43) zone="asia-southeast1-c" ;;
44) zone="asia-northeast1-a" ;; 44) zone="asia-east1-a" ;;
45) zone="asia-northeast1-b" ;; 45) zone="asia-east1-b" ;;
46) zone="asia-northeast1-c" ;; 46) zone="asia-east1-c" ;;
47) zone="australia-southeast1-a" ;; 47) zone="asia-northeast1-a" ;;
48) zone="australia-southeast1-b" ;; 48) zone="asia-northeast1-b" ;;
49) zone="australia-southeast1-c" ;; 49) zone="asia-northeast1-c" ;;
50) zone="australia-southeast1-a" ;;
51) zone="australia-southeast1-b" ;;
52) zone="australia-southeast1-c" ;;
esac esac
ROLES="gce vpn cloud" ROLES="gce vpn cloud"

View file

@ -188,6 +188,9 @@ Possible options for `zone`:
- us-west1-a - us-west1-a
- us-west1-b - us-west1-b
- us-west1-c - us-west1-c
- us-west2-a
- us-west2-b
- us-west2-c
- us-central1-a - us-central1-a
- us-central1-b - us-central1-b
- us-central1-c - us-central1-c