fix: 支持kvdb依赖包安装,db_ip默认0.0.0.0
This commit is contained in:
@@ -20,7 +20,7 @@ export const NE_TYPE_LIST = [
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 网元拓展包列表,默认顺序
|
* 网元拓展包列表,默认顺序
|
||||||
* IMS-adb/rtproxy/mf
|
* IMS-adb/kvdb/rtproxy/mf
|
||||||
* UDM-adb
|
* UDM-adb/kvdb
|
||||||
*/
|
*/
|
||||||
export const NE_EXPAND_LIST = ['ADB', 'RTPROXY', 'MF'];
|
export const NE_EXPAND_LIST = ['ADB', 'KVDB', 'RTPROXY', 'MF'];
|
||||||
|
|||||||
@@ -153,11 +153,10 @@ type nfStateType = {
|
|||||||
/**网元详细信息 */
|
/**网元详细信息 */
|
||||||
let pronInfo: nfStateType = reactive({
|
let pronInfo: nfStateType = reactive({
|
||||||
hostName: '5gc',
|
hostName: '5gc',
|
||||||
osInfo:
|
osInfo: 'Linux 5gc 4.15.0-112-generic 2020 x86_64 GNU/Linux',
|
||||||
'Linux 5gc 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 GNU/Linux',
|
dbInfo: 'db v9.9.9',
|
||||||
dbInfo: 'adb v1.0.1',
|
|
||||||
ipAddress: '-',
|
ipAddress: '-',
|
||||||
port: 3030,
|
port: 33030,
|
||||||
version: '-',
|
version: '-',
|
||||||
cpuUse: '-',
|
cpuUse: '-',
|
||||||
memoryUse: '-',
|
memoryUse: '-',
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ let state: StateType = reactive({
|
|||||||
amf_ip: '172.16.5.120',
|
amf_ip: '172.16.5.120',
|
||||||
ausf_ip: '172.16.5.130',
|
ausf_ip: '172.16.5.130',
|
||||||
udm_ip: '172.16.5.140',
|
udm_ip: '172.16.5.140',
|
||||||
adb_ip: '0.0.0.0',
|
db_ip: '0.0.0.0',
|
||||||
smf_ip: '172.16.5.150',
|
smf_ip: '172.16.5.150',
|
||||||
pcf_ip: '172.16.5.160',
|
pcf_ip: '172.16.5.160',
|
||||||
nssf_ip: '172.16.5.170',
|
nssf_ip: '172.16.5.170',
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ function fnGetData() {
|
|||||||
break;
|
break;
|
||||||
case 'UDM':
|
case 'UDM':
|
||||||
state.from.sbi.udm_ip = item.ip;
|
state.from.sbi.udm_ip = item.ip;
|
||||||
state.from.sbi.adb_ip = '0.0.0.0';
|
state.from.sbi.db_ip = '0.0.0.0';
|
||||||
break;
|
break;
|
||||||
case 'SMF':
|
case 'SMF':
|
||||||
state.from.sbi.smf_ip = item.ip;
|
state.from.sbi.smf_ip = item.ip;
|
||||||
|
|||||||
@@ -157,11 +157,7 @@ type StateType = {
|
|||||||
optionType: 'upload' | 'option';
|
optionType: 'upload' | 'option';
|
||||||
/**文件上传 */
|
/**文件上传 */
|
||||||
visibleByFile: boolean;
|
visibleByFile: boolean;
|
||||||
/**
|
/**网元拓展包列表类型 */
|
||||||
* 依赖包类型
|
|
||||||
* IMS-rtproxy/mf/adb
|
|
||||||
* UDM-adb
|
|
||||||
*/
|
|
||||||
depType: string[];
|
depType: string[];
|
||||||
/**软件包信息数据 */
|
/**软件包信息数据 */
|
||||||
from: {
|
from: {
|
||||||
|
|||||||
@@ -91,6 +91,9 @@ async function fnModalOk() {
|
|||||||
if (expandFile['ADB']) {
|
if (expandFile['ADB']) {
|
||||||
pkgArr.push(expandFile['ADB']);
|
pkgArr.push(expandFile['ADB']);
|
||||||
}
|
}
|
||||||
|
if (expandFile['KVDB']) {
|
||||||
|
pkgArr.push(expandFile['KVDB']);
|
||||||
|
}
|
||||||
if (expandFile['RTPROXY']) {
|
if (expandFile['RTPROXY']) {
|
||||||
pkgArr.push(expandFile['RTPROXY']);
|
pkgArr.push(expandFile['RTPROXY']);
|
||||||
}
|
}
|
||||||
@@ -104,6 +107,8 @@ async function fnModalOk() {
|
|||||||
const udm = from.find(s => s.neType === 'UDM');
|
const udm = from.find(s => s.neType === 'UDM');
|
||||||
if (udm && expandFile['ADB']) {
|
if (udm && expandFile['ADB']) {
|
||||||
udm.path = [expandFile['ADB'], udm.path].join(',');
|
udm.path = [expandFile['ADB'], udm.path].join(',');
|
||||||
|
} else if (udm && expandFile['KVDB']) {
|
||||||
|
udm.path = [expandFile['KVDB'], udm.path].join(',');
|
||||||
}
|
}
|
||||||
|
|
||||||
// 安装带依赖包-指定网元时
|
// 安装带依赖包-指定网元时
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ function fnGetList() {
|
|||||||
break;
|
break;
|
||||||
case 'UDM':
|
case 'UDM':
|
||||||
state.from.sbi.udm_ip = item.ip;
|
state.from.sbi.udm_ip = item.ip;
|
||||||
state.from.sbi.adb_ip = '0.0.0.0';
|
state.from.sbi.db_ip = '0.0.0.0';
|
||||||
break;
|
break;
|
||||||
case 'SMF':
|
case 'SMF':
|
||||||
state.from.sbi.smf_ip = item.ip;
|
state.from.sbi.smf_ip = item.ip;
|
||||||
|
|||||||
Reference in New Issue
Block a user