-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(storage) add powerflex driver support, fixes #677 WD-9204
Signed-off-by: David Edler <david.edler@canonical.com>
- Loading branch information
Showing
15 changed files
with
249 additions
and
31 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
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
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,43 @@ | ||
import { FormikProps } from "formik"; | ||
import { FC } from "react"; | ||
import { StoragePoolFormValues } from "./StoragePoolForm"; | ||
import { getConfigurationRow } from "components/ConfigurationRow"; | ||
import { Input, Select } from "@canonical/react-components"; | ||
import { optionTrueFalse } from "util/instanceOptions"; | ||
import ScrollableConfigurationTable from "components/forms/ScrollableConfigurationTable"; | ||
|
||
interface Props { | ||
formik: FormikProps<StoragePoolFormValues>; | ||
} | ||
|
||
const StoragePoolFormPowerflex: FC<Props> = ({ formik }) => { | ||
return ( | ||
<ScrollableConfigurationTable | ||
rows={[ | ||
getConfigurationRow({ | ||
formik, | ||
label: "Clone copy", | ||
name: "powerflex_clone_copy", | ||
defaultValue: "", | ||
children: <Select options={optionTrueFalse} />, | ||
}), | ||
getConfigurationRow({ | ||
formik, | ||
label: "SDT", | ||
name: "powerflex_sdt", | ||
defaultValue: "", | ||
children: <Input type="text" />, | ||
}), | ||
getConfigurationRow({ | ||
formik, | ||
label: "Gateway verify", | ||
name: "powerflex_gateway_verify", | ||
defaultValue: "", | ||
children: <Select options={optionTrueFalse} />, | ||
}), | ||
]} | ||
/> | ||
); | ||
}; | ||
|
||
export default StoragePoolFormPowerflex; |
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
Oops, something went wrong.