|
|
|
@ -13,10 +13,7 @@ export const validationSchema = yup.object({
|
|
|
|
.max(256, "Network name should be 256 characters or less")
|
|
|
|
.max(256, "Network name should be 256 characters or less")
|
|
|
|
.required("Network name is required"),
|
|
|
|
.required("Network name is required"),
|
|
|
|
|
|
|
|
|
|
|
|
driver: yup
|
|
|
|
driver: yup.string().max(256, "Driver should be 256 characters or less"),
|
|
|
|
.string()
|
|
|
|
|
|
|
|
.max(256, "Driver should be 256 characters or less")
|
|
|
|
|
|
|
|
.default("default"),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
configurations: yup.array(
|
|
|
|
configurations: yup.array(
|
|
|
|
yup.object({
|
|
|
|
yup.object({
|
|
|
|
@ -71,7 +68,7 @@ export const tabs = [
|
|
|
|
export const initialValues: IEditNetworkForm = {
|
|
|
|
export const initialValues: IEditNetworkForm = {
|
|
|
|
entryName: "",
|
|
|
|
entryName: "",
|
|
|
|
networkName: "",
|
|
|
|
networkName: "",
|
|
|
|
driver: "default",
|
|
|
|
driver: "",
|
|
|
|
configurations: [],
|
|
|
|
configurations: [],
|
|
|
|
options: [],
|
|
|
|
options: [],
|
|
|
|
labels: []
|
|
|
|
labels: []
|
|
|
|
|