diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f0f0bbc0..c49601cd9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/storage_drivers/ontap/ontap_common.go b/storage_drivers/ontap/ontap_common.go index f2004da67..7b61cb54b 100644 --- a/storage_drivers/ontap/ontap_common.go +++ b/storage_drivers/ontap/ontap_common.go @@ -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) }