This commit is contained in:
lai
2024-03-27 10:08:13 +08:00
3 changed files with 30 additions and 3 deletions

View File

@@ -88,3 +88,16 @@ export function neHostCheckInfo(data: Record<string, any>) {
data: data,
});
}
/**
* 网元主机SSH方式授权免密发送
* @param data 网元主机对象
* @returns object
*/
export function neHostAuthorizedRSA(data: Record<string, any>) {
return request({
url: '/ne/host/authorizedBySSH',
method: 'post',
data: data,
});
}

View File

@@ -92,3 +92,17 @@ export function stateNeInfo(neType: string, neId: string) {
params: { neType, neId },
});
}
/**
* 查询网元信息
* @param neType 网元类型
* @param neId 网元ID
* @returns object
*/
export function getTypeAndIDNeInfo(neType: string, neId: string) {
return request({
url: '/ne/info/byTypeAndID',
method: 'get',
params: { neType, neId },
});
}

View File

@@ -66,13 +66,13 @@ export function delNeSoftware(softwareIds: string | number) {
}
/**
* 网元软件包安装
* 网元软件包安装检查
* @param data 网元对象
* @returns object
*/
export function installNeSoftware(data: Record<string, any>) {
export function installCheckNeSoftware(data: Record<string, any>) {
return request({
url: `/ne/software/install`,
url: `/ne/software/installCheck`,
method: 'post',
data: data,
});