-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SBD] Implement NetAPP ONTAP SAN Driver Support (#1135)
- Loading branch information
1 parent
c17ceb1
commit 650a0a0
Showing
603 changed files
with
228,420 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,8 @@ language: go | |
go_import_path: github.com/opensds/opensds | ||
|
||
go: | ||
- 1.11.x | ||
- 1.12.x | ||
- 1.13.x | ||
- tip | ||
|
||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Copyright 2019 The OpenSDS Authors. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); you may | ||
// not use this file except in compliance with the License. You may obtain | ||
// a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
// License for the specific l | ||
|
||
package ontap | ||
|
||
// default value for driver | ||
const ( | ||
defaultConfPath = "/etc/opensds/driver/netapp_ontap_san.yaml" | ||
DefaultAZ = "default" | ||
volumePrefix = "opensds_" | ||
snapshotPrefix = "opensds_snapshot_" | ||
naaPrefix = "60a98000" //Applicable to Clustered Data ONTAP and Data ONTAP 7-Mode | ||
KLvPath = "lunPath" | ||
KLvIdFormat = "NAA" | ||
StorageDriverName = "ontap-san" | ||
driverContext = "csi" | ||
VolumeVersion = "1" | ||
SnapshotVersion = "1" | ||
accessMode = "" | ||
volumeMode = "Block" | ||
bytesGiB = 1073741824 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// Copyright 2019 The OpenSDS Authors. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); you may | ||
// not use this file except in compliance with the License. You may obtain | ||
// a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
// License for the specific language governing permissions and limitations | ||
// under the License. | ||
|
||
package ontap | ||
|
||
import ( | ||
"github.com/netapp/trident/storage_drivers/ontap" | ||
. "github.com/opensds/opensds/contrib/drivers/utils/config" | ||
) | ||
|
||
type BackendOptions struct { | ||
Version int `yaml:"version"` | ||
StorageDriverName string `yaml:"storageDriverName"` | ||
ManagementLIF string `yaml:"managementLIF"` | ||
DataLIF string `yaml:"dataLIF"` | ||
Svm string `yaml:"svm"` | ||
IgroupName string `yaml:"igroupName"` | ||
Username string `yaml:"username"` | ||
Password string `yaml:"password"` | ||
} | ||
|
||
type ONTAPConfig struct { | ||
BackendOptions `yaml:"backendOptions"` | ||
Pool map[string]PoolProperties `yaml:"pool,flow"` | ||
} | ||
|
||
type SANDriver struct { | ||
sanStorageDriver *ontap.SANStorageDriver | ||
conf *ONTAPConfig | ||
} | ||
|
||
type Pool struct { | ||
PoolId int `json:"poolId"` | ||
TotalCapacity int64 `json:"totalCapacity"` | ||
AllocCapacity int64 `json:"allocatedCapacity"` | ||
UsedCapacity int64 `json:"usedCapacity"` | ||
} |
Oops, something went wrong.