forked from aliyun/terraform-provider-alicloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
extension_vpc.go
62 lines (51 loc) · 1.48 KB
/
extension_vpc.go
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
50
51
52
53
54
55
56
57
58
59
60
61
62
package alicloud
type NatGatewaySpec string
const (
NatGatewaySmallSpec = NatGatewaySpec("Small")
NatGatewayMiddleSpec = NatGatewaySpec("Middle")
NatGatewayLargeSpec = NatGatewaySpec("Large")
)
const (
EcsInstance = "EcsInstance"
SlbInstance = "SlbInstance"
Nat = "Nat"
HaVip = "HaVip"
)
type RouterType string
type Role string
type Spec string
const (
VRouter = RouterType("VRouter")
VBR = RouterType("VBR")
InitiatingSide = Role("InitiatingSide")
AcceptingSide = Role("AcceptingSide")
Mini2 = Spec("Mini.2")
Mini5 = Spec("Mini.5")
Small1 = Spec("Small.1")
Small2 = Spec("Small.2")
Small5 = Spec("Small.5")
Middle1 = Spec("Middle.1")
Middle2 = Spec("Middle.2")
Middle5 = Spec("Middle.5")
Large1 = Spec("Large.1")
Large2 = Spec("Large.2")
Large5 = Spec("Large.5")
Xlarge1 = Spec("Xlarge.1")
Negative = Spec(("Negative"))
)
type NextHopType string
const (
NextHopIntance = NextHopType("Instance") //Default
NextHopTunnel = NextHopType("Tunnel")
NextHopRouterInterface = NextHopType("RouterInterface")
NextHopHaVip = NextHopType("HaVip")
NextHopVpnGateway = NextHopType("VpnGateway")
)
func GetAllRouterInterfaceSpec() (specifications []string) {
specifications = append(specifications, string(Mini2), string(Mini5),
string(Small1), string(Small2), string(Small5),
string(Middle1), string(Middle2), string(Middle5),
string(Large1), string(Large2), string(Large5), string(Xlarge1),
string(Negative))
return
}