feat: 新增网元操作相关接口

This commit is contained in:
TsMask committed 2024-03-26 21:01:39 +08:00
1 parent c2e95f607b
commit 9faf02a1a6
3 files changed
+30 -3

No files matched your search

+13
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,
});
}
+14
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 },
});
}
+3 -3
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,
});