Skip to content

Commit

Permalink
Support more specification of router interface
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaozhu36 committed Aug 9, 2018
1 parent 423989d commit 301ced6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

IMPROVEMENTS:

- Support more specification of router interface ([#586](https://github.com/alibaba/terraform-provider/pull/586))
- Improve resource alicloud_fc_service docs ([#584](https://github.com/alibaba/terraform-provider/pull/584))
- Modify resource alicloud_fc_function handler is required ([#583](https://github.com/alibaba/terraform-provider/pull/583))
- Resource alicloud_router_interface support "import" function ([#581](https://github.com/alibaba/terraform-provider/pull/581))
Expand Down
12 changes: 9 additions & 3 deletions alicloud/extension_vpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ const (
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")
Expand All @@ -34,6 +36,8 @@ const (
Middle5 = Spec("Middle.5")
Large1 = Spec("Large.1")
Large2 = Spec("Large.2")
Large5 = Spec("Large.5")
Xlarge1 = Spec("Xlarge.1")

Negative = Spec(("Negative"))
)
Expand All @@ -49,8 +53,10 @@ const (
)

func GetAllRouterInterfaceSpec() (specifications []string) {
specifications = append(specifications, string(Large1), string(Large2),
string(Small1), string(Small2), string(Small5), string(Middle1),
string(Middle2), string(Middle5), string(Negative))
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
}

0 comments on commit 301ced6

Please sign in to comment.