Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Implement NetAPP Eseries SAN Driver Support #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions contrib/drivers/netapp/eseries/constants.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
package eseries

const (
defaultConfPath = "/etc/opensds/driver/netapp_eseries_storage.yaml"
DefaultAZ = "default"
StorageDriverName = "eseries-san"
volumePrefix = "opensds_"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we rename these to soda?

snapshotPrefix = "opensds_snapshot_"
driverContext = "csi"
VolumeVersion = "1"
SnapshotVersion = "1"
accessMode = ""
volumeMode = "Block"
bytesGiB = 1073741824
)
const (
DefaultHostType = "linux_dm_mp"
MinimumVolumeSizeBytes = 1048576 // 1 MiB

// Constants for internal pool attributes
Size = "size"
Region = "region"
Zone = "zone"
Media = "media"
)

// ConfigVersion is the expected version specified in the config file
const ConfigVersion = 1

// Default storage prefix
const DefaultDockerStoragePrefix = "netappdvp_"
const DefaultTridentStoragePrefix = "trident_"

// Default SAN igroup / host group names
const DefaultDockerIgroupName = "netappdvp"
const DefaultTridentIgroupName = "trident"

// Storage driver names specified in the config file, etc.
const (
EseriesIscsiStorageDriverName = "eseries-iscsi"
FakeStorageDriverName = "fake"
)

// Filesystem types
const (
FsXfs = "xfs"
FsExt3 = "ext3"
FsExt4 = "ext4"
FsRaw = "raw"
)

// Default Filesystem value
const DefaultFileSystemType = FsExt4

const UnsetPool = ""
const DefaultVolumeSize = "1G"
Loading