From ec49fffbe5f50c1a0babad150a716b72a138fec4 Mon Sep 17 00:00:00 2001 From: "Jingwei.Zhang" Date: Fri, 8 Oct 2021 12:09:06 +0800 Subject: [PATCH] fix: Add ipxe, fake boot interface when create bare metal Add ipxe, fake boot interface when create bare metal Change-Id: Ie2b73e9ee5e997709dd57dc1dba19ccae5739133 --- src/locales/en.json | 2 ++ src/locales/zh.json | 2 ++ .../BareMetalNode/actions/Create/DriveInterface.jsx | 6 +++++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/locales/en.json b/src/locales/en.json index b07ca38f..2e21d7f8 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -625,6 +625,7 @@ "External Port": "External Port", "Extra Infos": "Extra Infos", "Extra Spec": "Extra Spec", + "FAKE": "FAKE", "FLAT": "FLAT", "Fail Rollback": "Fail Rollback", "Failed": "Failed", @@ -741,6 +742,7 @@ "IPMI Protocol Version": "IPMI Protocol Version", "IPMI Username": "IPMI Username", "IPMITool": "IPMITool", + "IPXE": "IPXE", "IPsec Policy": "IPsec Policy", "IPv4": "IPv4", "IPv4 Address": "IPv4 Address", diff --git a/src/locales/zh.json b/src/locales/zh.json index d4dc581a..06cee8c1 100644 --- a/src/locales/zh.json +++ b/src/locales/zh.json @@ -625,6 +625,7 @@ "External Port": "源端口", "Extra Infos": "额外信息", "Extra Spec": "额外规格", + "FAKE": "", "FLAT": "", "Fail Rollback": "失败回滚", "Failed": "失败", @@ -741,6 +742,7 @@ "IPMI Protocol Version": "IPMI协议版本", "IPMI Username": "IPMI用户名", "IPMITool": "", + "IPXE": "", "IPsec Policy": "IPsec策略", "IPv4": "", "IPv4 Address": "IPv4 地址", diff --git a/src/pages/compute/containers/BareMetalNode/actions/Create/DriveInterface.jsx b/src/pages/compute/containers/BareMetalNode/actions/Create/DriveInterface.jsx index 5d5d41af..7d357524 100644 --- a/src/pages/compute/containers/BareMetalNode/actions/Create/DriveInterface.jsx +++ b/src/pages/compute/containers/BareMetalNode/actions/Create/DriveInterface.jsx @@ -19,7 +19,11 @@ import Base from 'components/Form'; @observer export default class NodeInterface extends Base { get bootInterfaces() { - return [{ value: 'pxe', label: t('PXE') }]; + return [ + { value: 'pxe', label: t('PXE') }, + { value: 'ipxe', label: t('IPXE') }, + { value: 'fake', label: t('FAKE') }, + ]; } get consoleInterfaces() {