Skip to content

Commit

Permalink
IPv6 dataLIF brackets (#283)
Browse files Browse the repository at this point in the history
brackets for datalif, required for mounting when specified by user
  • Loading branch information
torirevilla authored Apr 24, 2020
1 parent 1ef6da3 commit 2c835a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- **Kubernetes:** Fixed volume import for ANF backends.
- **Kubernetes:** Fixed cloning imported volumes for CVS & ANF backends.
- **Kubernetes:** Fixed displaying volume sizes in Gi. (Issue [#305](https://github.com/NetApp/trident/issues/305))
- Fixed dataLIF specification in backend config for IPv6.

**Enhancements**
- Updated to GoLang 1.14.
Expand Down
4 changes: 3 additions & 1 deletion storage_drivers/ontap/ontap_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,9 @@ func ValidateNASDriver(api *api.Client, config *drivers.OntapStorageDriverConfig
config.DataLIF = dataLIFs[0]
}
} else {
_, err := ValidateDataLIF(config.DataLIF, dataLIFs)
cleanDataLIF := strings.Replace(config.DataLIF, "[", "", 1)
cleanDataLIF = strings.Replace(cleanDataLIF, "]", "", 1)
_, err := ValidateDataLIF(cleanDataLIF, dataLIFs)
if err != nil {
return fmt.Errorf("data LIF validation failed: %v", err)
}
Expand Down

0 comments on commit 2c835a8

Please sign in to comment.