Skip to content

Commit 93f829b

Browse files
authored
add vlan to initialisms (#161)
Issue #, if available: N/A Description of changes: * add vlan to initialisms; Subnet resource generates this field Testing: * `make test` ✅ * `make build-controller` ✅ ``` type LocalGatewayVirtualInterface struct { LocalAddress *string `json:"localAddress,omitempty"` LocalBGPASN *int64 `json:"localBGPASN,omitempty"` LocalGatewayID *string `json:"localGatewayID,omitempty"` OwnerID *string `json:"ownerID,omitempty"` PeerAddress *string `json:"peerAddress,omitempty"` PeerBGPASN *int64 `json:"peerBGPASN,omitempty"` Tags []*Tag `json:"tags,omitempty"` VLAN *int64 `json:"vlan,omitempty"` } ``` By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 821a0da commit 93f829b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pkg/names/names.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ var (
115115
// Need to prevent "security" from becoming "SecURIty"
116116
{"Uri", "URI", "uri", regexp.MustCompile("(?!sec)uri(?!ty)|(Uri)", regexp.None)},
117117
{"Url", "URL", "url", nil},
118+
{"Vlan", "VLAN", "vlan", nil},
118119
{"Vpc", "VPC", "vpc", nil},
119120
{"Vpn", "VPN", "vpn", nil},
120121
{"Vgw", "VGW", "vgw", nil},

pkg/names/names_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ func TestNames(t *testing.T) {
5353
{"DpdTimeoutAction", "DPDTimeoutAction", "dpdTimeoutAction", "dpd_timeout_action"},
5454
{"Iops", "IOPS", "iops", "iops"},
5555
{"IoPerformance", "IOPerformance", "ioPerformance", "io_performance"},
56+
{"Vlan", "VLAN", "vlan", "vlan"},
5657
}
5758
for _, tc := range testCases {
5859
n := names.New(tc.original)

0 commit comments

Comments
 (0)