Skip to content

Commit

Permalink
Add "External" network purpose (#98)
Browse files Browse the repository at this point in the history
* Add "External" network purpose.
* Bump version.
* Fix error & remove lf/cr at the end of version file.
  • Loading branch information
mchuang3 authored Feb 24, 2023
1 parent 7cd6b89 commit 3c69253
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions internal/resources/resource_network.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// (C) Copyright 2020-2022 Hewlett Packard Enterprise Development LP
// (C) Copyright 2020-2023 Hewlett Packard Enterprise Development LP

package resources

Expand Down Expand Up @@ -423,7 +423,7 @@ func resourceMetalNetworkDelete(d *schema.ResourceData, meta interface{}) (err e

// getSupportedNetworkPurpose returns a string containing supported network purpose values.
func getSupportedNetworkPurpose() string {
return fmt.Sprintf("%v, %v, %v, %v, %v, %v, %v, %v, %v or %v",
return fmt.Sprintf("%v, %v, %v, %v, %v, %v, %v, %v, %v, %v or %v",
rest.NETWORKPURPOSE_BACKUP,
rest.NETWORKPURPOSE_STORAGE,
rest.NETWORKPURPOSE_VM_KERNEL,
Expand All @@ -433,5 +433,7 @@ func getSupportedNetworkPurpose() string {
rest.NETWORKPURPOSE_VM_FT,
rest.NETWORKPURPOSE_I_SCSI_A,
rest.NETWORKPURPOSE_I_SCSI_B,
rest.NETWORKPURPOSE_TELEMETRY)
rest.NETWORKPURPOSE_TELEMETRY,
rest.NETWORKPURPOSE_EXTERNAL,
)
}
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.13
0.1.14

0 comments on commit 3c69253

Please sign in to comment.