chore: 打包程序restagent变更omc
This commit is contained in:
@@ -13,7 +13,7 @@ import (
|
||||
"nms_cxy/lib/log"
|
||||
"nms_cxy/lib/oauth"
|
||||
"nms_cxy/lib/services"
|
||||
"nms_cxy/restagent/config"
|
||||
"nms_cxy/omc/config"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
"nms_cxy/lib/global"
|
||||
"nms_cxy/lib/log"
|
||||
"nms_cxy/lib/services"
|
||||
"nms_cxy/restagent/config"
|
||||
"nms_cxy/omc/config"
|
||||
wsService "nms_cxy/src/modules/ws/service"
|
||||
)
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"nms_cxy/lib/dborm"
|
||||
"nms_cxy/lib/log"
|
||||
"nms_cxy/lib/services"
|
||||
"nms_cxy/restagent/config"
|
||||
"nms_cxy/omc/config"
|
||||
|
||||
"github.com/gorilla/mux"
|
||||
)
|
||||
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
"nms_cxy/lib/global"
|
||||
"nms_cxy/lib/log"
|
||||
"nms_cxy/lib/services"
|
||||
"nms_cxy/restagent/config"
|
||||
"nms_cxy/omc/config"
|
||||
tokenConst "nms_cxy/src/framework/constants/token"
|
||||
neService "nms_cxy/src/modules/network_element/service"
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"nms_cxy/lib/global"
|
||||
"nms_cxy/lib/log"
|
||||
"nms_cxy/lib/services"
|
||||
"nms_cxy/restagent/config"
|
||||
"nms_cxy/omc/config"
|
||||
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
"nms_cxy/lib/global"
|
||||
"nms_cxy/lib/log"
|
||||
"nms_cxy/lib/services"
|
||||
"nms_cxy/restagent/config"
|
||||
"nms_cxy/omc/config"
|
||||
|
||||
"github.com/gorilla/mux"
|
||||
)
|
||||
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
"nms_cxy/lib/dborm"
|
||||
"nms_cxy/lib/log"
|
||||
"nms_cxy/lib/services"
|
||||
"nms_cxy/restagent/config"
|
||||
"nms_cxy/omc/config"
|
||||
|
||||
_ "github.com/go-sql-driver/mysql"
|
||||
)
|
||||
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
"nms_cxy/lib/global"
|
||||
"nms_cxy/lib/log"
|
||||
"nms_cxy/lib/services"
|
||||
"nms_cxy/restagent/config"
|
||||
"nms_cxy/omc/config"
|
||||
|
||||
"github.com/gorilla/mux"
|
||||
"xorm.io/xorm"
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"nms_cxy/lib/file"
|
||||
"nms_cxy/lib/log"
|
||||
"nms_cxy/lib/services"
|
||||
"nms_cxy/restagent/config"
|
||||
"nms_cxy/omc/config"
|
||||
|
||||
"github.com/gorilla/mux"
|
||||
"github.com/shirou/gopsutil/disk"
|
||||
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
"nms_cxy/lib/global"
|
||||
"nms_cxy/lib/log"
|
||||
"nms_cxy/lib/services"
|
||||
"nms_cxy/restagent/config"
|
||||
"nms_cxy/omc/config"
|
||||
"nms_cxy/src/framework/utils/date"
|
||||
neDataModel "nms_cxy/src/modules/network_data/model"
|
||||
nmsCXYService "nms_cxy/src/modules/nms_cxy/service"
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
|
||||
"nms_cxy/lib/dborm"
|
||||
"nms_cxy/lib/log"
|
||||
"nms_cxy/restagent/config"
|
||||
"nms_cxy/omc/config"
|
||||
|
||||
"gopkg.in/gomail.v2"
|
||||
)
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
|
||||
"nms_cxy/lib/dborm"
|
||||
"nms_cxy/lib/log"
|
||||
"nms_cxy/restagent/config"
|
||||
"nms_cxy/omc/config"
|
||||
|
||||
"github.com/linxGnu/gosmpp"
|
||||
"github.com/linxGnu/gosmpp/data"
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"strings"
|
||||
|
||||
"nms_cxy/lib/log"
|
||||
"nms_cxy/restagent/config"
|
||||
"nms_cxy/omc/config"
|
||||
|
||||
"github.com/chzyer/readline"
|
||||
"github.com/go-gsm/ucp"
|
||||
|
||||
@@ -18,7 +18,7 @@ import (
|
||||
"nms_cxy/lib/oauth"
|
||||
"nms_cxy/lib/services"
|
||||
"nms_cxy/lib/session"
|
||||
"nms_cxy/restagent/config"
|
||||
"nms_cxy/omc/config"
|
||||
)
|
||||
|
||||
var TodoList []stTodo
|
||||
@@ -45,7 +45,7 @@ type ApiResponse struct {
|
||||
ResultMessage interface{}
|
||||
}
|
||||
|
||||
var globalSession = session.NewSessManager("restagent")
|
||||
var globalSession = session.NewSessManager("omc")
|
||||
|
||||
func init() {
|
||||
conf := config.GetYamlConfig()
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
"nms_cxy/lib/global"
|
||||
"nms_cxy/lib/log"
|
||||
"nms_cxy/lib/services"
|
||||
"nms_cxy/restagent/config"
|
||||
"nms_cxy/omc/config"
|
||||
|
||||
"github.com/gorilla/mux"
|
||||
"xorm.io/xorm"
|
||||
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
"nms_cxy/lib/dborm"
|
||||
"nms_cxy/lib/log"
|
||||
"nms_cxy/lib/services"
|
||||
"nms_cxy/restagent/config"
|
||||
"nms_cxy/omc/config"
|
||||
|
||||
"github.com/shirou/gopsutil/cpu"
|
||||
"github.com/shirou/gopsutil/disk"
|
||||
|
||||
@@ -15,7 +15,7 @@ import (
|
||||
"nms_cxy/lib/log"
|
||||
"nms_cxy/lib/mmlp"
|
||||
"nms_cxy/lib/services"
|
||||
"nms_cxy/restagent/config"
|
||||
"nms_cxy/omc/config"
|
||||
|
||||
tokenConst "nms_cxy/src/framework/constants/token"
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
"nms_cxy/lib/core/utils/ctx"
|
||||
"nms_cxy/lib/dborm"
|
||||
"nms_cxy/lib/services"
|
||||
"nms_cxy/restagent/config"
|
||||
"nms_cxy/omc/config"
|
||||
|
||||
"github.com/shirou/gopsutil/disk"
|
||||
"github.com/shirou/gopsutil/net"
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
|
||||
"nms_cxy/lib/dborm"
|
||||
"nms_cxy/lib/log"
|
||||
"nms_cxy/restagent/config"
|
||||
"nms_cxy/omc/config"
|
||||
|
||||
"github.com/robfig/cron/v3"
|
||||
"github.com/shirou/gopsutil/v3/cpu"
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"nms_cxy/lib/log"
|
||||
"nms_cxy/lib/services"
|
||||
"nms_cxy/lib/wsinfo"
|
||||
"nms_cxy/restagent/config"
|
||||
"nms_cxy/omc/config"
|
||||
|
||||
"github.com/gorilla/websocket"
|
||||
"github.com/shirou/gopsutil/process"
|
||||
|
||||
@@ -17,7 +17,7 @@ import (
|
||||
"nms_cxy/lib/oauth"
|
||||
"nms_cxy/lib/services"
|
||||
"nms_cxy/lib/session"
|
||||
"nms_cxy/restagent/config"
|
||||
"nms_cxy/omc/config"
|
||||
)
|
||||
|
||||
type ErrorOAuthResponse struct {
|
||||
@@ -36,7 +36,7 @@ type ApiResponse struct {
|
||||
ResultMessage interface{}
|
||||
}
|
||||
|
||||
var globalSession = session.NewSessManager("restagent")
|
||||
var globalSession = session.NewSessManager("omc")
|
||||
|
||||
var (
|
||||
MAX_RMUID_NUM int
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
|
||||
"nms_cxy/lib/log"
|
||||
"nms_cxy/lib/services"
|
||||
"nms_cxy/restagent/config"
|
||||
"nms_cxy/omc/config"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
"nms_cxy/lib/global"
|
||||
"nms_cxy/lib/log"
|
||||
"nms_cxy/lib/services"
|
||||
"nms_cxy/restagent/config"
|
||||
"nms_cxy/omc/config"
|
||||
|
||||
"xorm.io/xorm"
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ import (
|
||||
"nms_cxy/lib/log"
|
||||
"nms_cxy/lib/oauth"
|
||||
"nms_cxy/lib/services"
|
||||
"nms_cxy/restagent/config"
|
||||
"nms_cxy/omc/config"
|
||||
srcConfig "nms_cxy/src/framework/config"
|
||||
"nms_cxy/src/framework/i18n"
|
||||
"nms_cxy/src/framework/redis"
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
|
||||
"nms_cxy/lib/log"
|
||||
"nms_cxy/lib/services"
|
||||
"nms_cxy/restagent/config"
|
||||
"nms_cxy/omc/config"
|
||||
|
||||
_ "github.com/go-sql-driver/mysql"
|
||||
)
|
||||
|
||||
@@ -18,7 +18,7 @@ import (
|
||||
"nms_cxy/lib/global"
|
||||
"nms_cxy/lib/log"
|
||||
"nms_cxy/lib/services"
|
||||
"nms_cxy/restagent/config"
|
||||
"nms_cxy/omc/config"
|
||||
tokenConst "nms_cxy/src/framework/constants/token"
|
||||
)
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"nms_cxy/lib/core/vo/result"
|
||||
"nms_cxy/lib/midware"
|
||||
"nms_cxy/lib/services"
|
||||
"nms_cxy/restagent/config"
|
||||
"nms_cxy/omc/config"
|
||||
)
|
||||
|
||||
// 参数配置信息接口添加到路由
|
||||
|
||||
@@ -13,7 +13,7 @@ import (
|
||||
"nms_cxy/lib/core/vo/result"
|
||||
"nms_cxy/lib/midware"
|
||||
"nms_cxy/lib/services"
|
||||
"nms_cxy/restagent/config"
|
||||
"nms_cxy/omc/config"
|
||||
)
|
||||
|
||||
// 字典类型对应的字典数据信息接口添加到路由
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"nms_cxy/lib/core/vo/result"
|
||||
"nms_cxy/lib/midware"
|
||||
"nms_cxy/lib/services"
|
||||
"nms_cxy/restagent/config"
|
||||
"nms_cxy/omc/config"
|
||||
)
|
||||
|
||||
// 字典类型信息接口添加到路由
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"nms_cxy/lib/core/vo/result"
|
||||
"nms_cxy/lib/midware"
|
||||
"nms_cxy/lib/services"
|
||||
"nms_cxy/restagent/config"
|
||||
"nms_cxy/omc/config"
|
||||
srcConfig "nms_cxy/src/framework/config"
|
||||
)
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import (
|
||||
"nms_cxy/lib/core/vo/result"
|
||||
"nms_cxy/lib/midware"
|
||||
"nms_cxy/lib/services"
|
||||
"nms_cxy/restagent/config"
|
||||
"nms_cxy/omc/config"
|
||||
)
|
||||
|
||||
// 角色接口添加到路由
|
||||
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
"nms_cxy/lib/core/vo/result"
|
||||
"nms_cxy/lib/midware"
|
||||
"nms_cxy/lib/services"
|
||||
"nms_cxy/restagent/config"
|
||||
"nms_cxy/omc/config"
|
||||
srcConfig "nms_cxy/src/framework/config"
|
||||
)
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"nms_cxy/lib/core/vo/result"
|
||||
"nms_cxy/lib/dborm"
|
||||
"nms_cxy/lib/log"
|
||||
"nms_cxy/restagent/config"
|
||||
"nms_cxy/omc/config"
|
||||
"nms_cxy/src/framework/utils/cmd"
|
||||
"nms_cxy/src/framework/utils/ssh"
|
||||
)
|
||||
@@ -218,7 +218,7 @@ func TcpdumpNeUPFTask(w http.ResponseWriter, r *http.Request) {
|
||||
fileLogName := fmt.Sprintf("tmp_%s_%s.log", body.NeType, body.NeId)
|
||||
filePcapName := fmt.Sprintf("tmp_%s_%s.pcap", body.NeType, body.NeId)
|
||||
// 复制文件到网元上
|
||||
err := ssh.FileSCPLocalToNe(neInfo.Ip, "C:\\AMP\\Probject\\ems_backend\\restagent\\backup\\upf_pcap", "/tmp")
|
||||
err := ssh.FileSCPLocalToNe(neInfo.Ip, "C:\\AMP\\Probject\\ems_backend\\omc\\backup\\upf_pcap", "/tmp")
|
||||
if err != nil {
|
||||
ctx.JSON(w, 200, result.ErrMsg(err.Error()))
|
||||
return
|
||||
@@ -245,7 +245,7 @@ func TcpdumpNeUPFTask(w http.ResponseWriter, r *http.Request) {
|
||||
fileLogName := fmt.Sprintf("tmp_%s_%s.log", body.NeType, body.NeId)
|
||||
filePcapName := fmt.Sprintf("tmp_%s_%s.pcap", body.NeType, body.NeId)
|
||||
// cmdStr := "cd /tmp \nexpect /tmp/cat.sh "
|
||||
err := ssh.FileSCPLocalToNe(neInfo.Ip, "C:\\AMP\\Probject\\ems_backend\\restagent\\backup\\upf_pcap", "/tmp")
|
||||
err := ssh.FileSCPLocalToNe(neInfo.Ip, "C:\\AMP\\Probject\\ems_backend\\omc\\backup\\upf_pcap", "/tmp")
|
||||
if err != nil {
|
||||
ctx.JSON(w, 200, result.ErrMsg(err.Error()))
|
||||
return
|
||||
|
||||
@@ -17,7 +17,7 @@ import (
|
||||
"nms_cxy/lib/log"
|
||||
"nms_cxy/lib/run"
|
||||
"nms_cxy/lib/services"
|
||||
"nms_cxy/restagent/config"
|
||||
"nms_cxy/omc/config"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -17,7 +17,7 @@ import (
|
||||
"nms_cxy/lib/log"
|
||||
"nms_cxy/lib/midware"
|
||||
"nms_cxy/lib/services"
|
||||
"nms_cxy/restagent/config"
|
||||
"nms_cxy/omc/config"
|
||||
"nms_cxy/src/framework/middleware/collectlogs"
|
||||
"nms_cxy/src/framework/utils/file"
|
||||
"nms_cxy/src/framework/utils/ssh"
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"nms_cxy/lib/global"
|
||||
"nms_cxy/lib/log"
|
||||
"nms_cxy/lib/services"
|
||||
"nms_cxy/restagent/config"
|
||||
"nms_cxy/omc/config"
|
||||
tokenConst "nms_cxy/src/framework/constants/token"
|
||||
|
||||
"github.com/go-resty/resty/v2"
|
||||
|
||||
Reference in New Issue
Block a user