Skip to content

Commit

Permalink
Add support for backupnfc traffic class
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyriakos Oikonomakos committed Apr 28, 2021
1 parent 85b5989 commit 37f999c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions vsphere/distributed_virtual_switch_structure.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ var infrastructureTrafficClassValues = []string{
string(types.DistributedVirtualSwitchHostInfrastructureTrafficClassHbr),
string(types.DistributedVirtualSwitchHostInfrastructureTrafficClassVsan),
string(types.DistributedVirtualSwitchHostInfrastructureTrafficClassVdp),
string(types.DistributedVirtualSwitchHostInfrastructureTrafficClassBackupNfc),
}

var sharesLevelAllowedValues = []string{
Expand Down Expand Up @@ -617,9 +618,6 @@ func expandDvsHostInfrastructureTrafficResource(d *schema.ResourceData, key stri
// DvsHostInfrastructureTrafficResource and sets appropriate keys in the
// supplied ResourceData.
func flattenDvsHostInfrastructureTrafficResource(d *schema.ResourceData, obj types.DvsHostInfrastructureTrafficResource, key string) error {
if strings.ToLower(key) == "backupnfc" { // this key does not appear to be defined in schema and results in a panic
return nil
}
shareLevelKey := fmt.Sprintf("%s_share_level", strings.ToLower(key))
shareCountKey := fmt.Sprintf("%s_share_count", strings.ToLower(key))
maxMbitKey := fmt.Sprintf("%s_maximum_mbit", strings.ToLower(key))
Expand Down

0 comments on commit 37f999c

Please sign in to comment.