功能 #2778
核心网网管版本管理
0%
描述
功能:支持安装、升级、回退、卸载核心网版本
core_agent-netconf接口:
get请求:
1.moduleName:all;
2.type:install(安装)、uninstall(卸载)、upgrade(升级)、fallback(回退);
3.extension:redisKey(版本管理操作redis key);
响应:
与基站返回结果相同,netconf返回超时时间,操作结果写入redis;
历史记录
由 钱 伯宁 更新于 3 个月 之前
core_agent netconf上传接口:
get请求:
1.type:upload;
2.operation:query
3.moduleName:all-pkg;
响应:
返回上传版本的绝对路径;
core_agent netconf版本信息接口:
get请求:
1.type:version;
2.operation:query;
响应:
返回与基站一致:
type ModuleVersionInfo struct {
Name string `json:"moduleName"` // 软件名称
Info []VersionInfo `json:"info"`
}
type VersionInfo struct {
ModuleId string `json:"moduleId"` //模块ID
Version string `json:"version"` // 软件信息
InstallTime string `json:"isntallTime"` // 安装时间
Status string `json:"status"` // 运行状态
}
由 钱 伯宁 更新于 3 个月 之前
增加软件包列表信息:
get请求:
1.type:list;
2.operation:query;
3.modulename:all;
响应与基站一致:
type ModuleVerAndPkg struct {
Version string `json:"version"`
InnerVer string `json:"innerVer"`
InstallTime string `json:"install-time"`
ReleaseTime string `json:"release-time"`
Package []PkgFileInfoList `json:"pkgInfo"`
}
type PkgFileInfoList struct {
FileId string `json:"fileId"`
Name string `json:"name"`
Size int64 `json:"size"`
UploadTime string `json:"upload-time"`
}