fix: 网元信息接口优化,移除网元配置文件读写,oam文件读写操作
This commit is contained in:
@@ -45,7 +45,7 @@ type INeInfo interface {
|
||||
DeleteByIds(infoIds []string) (int64, error)
|
||||
|
||||
// CheckUniqueNeTypeAndNeId 校验同类型下标识是否唯一
|
||||
CheckUniqueNeTypeAndNeId(neType, neId, infoId string) bool
|
||||
CheckUniqueNeTypeAndNeId(neType, neId, id string) bool
|
||||
|
||||
// NeRunSSHclient 网元主机的SSH客户端-为创建相关连接
|
||||
NeRunSSHclient(neType, neId string) (*ssh.ConnSSH, error)
|
||||
@@ -53,26 +53,12 @@ type INeInfo interface {
|
||||
// NeRunCMD 向网元发送cmd命令
|
||||
NeRunCMD(neType, neId, cmd string) (string, error)
|
||||
|
||||
// NeConfigFileRead 网元配置文件读取 网元配置yaml文件复制到本地后通过filePath读取
|
||||
//
|
||||
// 返回 string string[] map[string]any
|
||||
NeConfigFileRead(neInfo model.NeInfo, filePath, fileType string) any
|
||||
|
||||
// NeConfigFileWirte 网元配置文件写入 content内容 sync同步到网元端
|
||||
NeConfigFileWirte(neInfo model.NeInfo, filePath, fileType string, content any, sync bool) error
|
||||
|
||||
// NeConfOAMRead 网元OAM配置文件读取
|
||||
NeConfOAMRead(neType, neId string) (map[string]any, error)
|
||||
|
||||
// NeConfOAMWirte 网元OAM配置文件写入 content内容 sync同步到网元端
|
||||
NeConfOAMWirte(neType, neId string, content any, sync bool) error
|
||||
// NeConfOAMSync 网元OAM配置文件生成并同步
|
||||
NeConfOAMSync(neInfo model.NeInfo, sync bool) error
|
||||
|
||||
// NeConfPara5GRead 网元公共配置文件读取
|
||||
NeConfPara5GRead() (map[string]any, error)
|
||||
|
||||
// NeConfPara5GWirte 网元公共配置文件写入 content内容 syncNE同步到网元端NeType@NeId
|
||||
NeConfPara5GWirte(content map[string]any, syncNE []string) error
|
||||
|
||||
// NeConfPara5GConvert 网元公共配置数据转化 content网元公共配置文件读取内容
|
||||
NeConfPara5GDataConvert(content map[string]any) map[string]string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user