Loading go-apps/meep-app-enablement/server/app-support/app-support.go +0 −6 Original line number Diff line number Diff line Loading @@ -105,7 +105,6 @@ func Init(sandbox string, mep string, host *url.URL, msgQueue *mq.MsgQueue, glob log.Error("Failed connection to Redis DB. Error: ", err) return err } _ = rc.DBFlush(baseKey) log.Info("Connected to Redis DB") // Initialize subscription ID count Loading Loading @@ -134,11 +133,6 @@ func Run() (err error) { // Stop - Stop APP support func Stop() (err error) { // Flush all app-enablement instance data if baseKey != "" { key := baseKey + "*" _ = rc.DBFlush(key) } return nil } Loading go-apps/meep-app-enablement/server/service-mgmt/service-mgmt.go +0 −6 Original line number Diff line number Diff line Loading @@ -118,7 +118,6 @@ func Init(sandbox string, mep string, host *url.URL, msgQueue *mq.MsgQueue, glob log.Error("Failed connection to Redis DB. Error: ", err) return err } _ = rc.DBFlush(baseKey) log.Info("Connected to Redis DB") // Initialize subscription ID count Loading Loading @@ -147,11 +146,6 @@ func Run() (err error) { // Stop - Stop Service Mgmt func Stop() (err error) { // Flush all app-enablement instance data if baseKey != "" { key := baseKey + "*" _ = rc.DBFlush(key) } return nil } Loading go-apps/meep-sandbox-ctrl/server/app-ctrl.go +6 −0 Original line number Diff line number Diff line Loading @@ -106,6 +106,12 @@ func appCtrlStop() (err error) { return nil } // Flush App instances func appCtrlFlushAppInstances() (err error) { _ = appCtrl.rc.DBFlush(appCtrl.baseKey) return nil } func applicationsPOST(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Type", "application/json; charset=UTF-8") log.Info("applicationsPOST") Loading go-apps/meep-sandbox-ctrl/server/sandbox-ctrl.go +6 −0 Original line number Diff line number Diff line Loading @@ -312,6 +312,9 @@ func activateScenario(scenarioName string) (err error) { return err } // Flush App Instances _ = appCtrlFlushAppInstances() // Send Activation message to Virt Engine on Global Message Queue msg := sbxCtrl.mqGlobal.CreateMsg(mq.MsgScenarioActivate, mq.TargetAll, mq.TargetAll) msg.Payload[fieldSandboxName] = sbxCtrl.sandboxName Loading Loading @@ -807,6 +810,9 @@ func ceTerminateScenario(w http.ResponseWriter, r *http.Request) { // Renew APIs _ = sbxCtrl.apiMgr.FlushMepApis() // Flush App Instances _ = appCtrlFlushAppInstances() // Send response w.Header().Set("Content-Type", "application/json; charset=UTF-8") w.WriteHeader(http.StatusOK) Loading Loading
go-apps/meep-app-enablement/server/app-support/app-support.go +0 −6 Original line number Diff line number Diff line Loading @@ -105,7 +105,6 @@ func Init(sandbox string, mep string, host *url.URL, msgQueue *mq.MsgQueue, glob log.Error("Failed connection to Redis DB. Error: ", err) return err } _ = rc.DBFlush(baseKey) log.Info("Connected to Redis DB") // Initialize subscription ID count Loading Loading @@ -134,11 +133,6 @@ func Run() (err error) { // Stop - Stop APP support func Stop() (err error) { // Flush all app-enablement instance data if baseKey != "" { key := baseKey + "*" _ = rc.DBFlush(key) } return nil } Loading
go-apps/meep-app-enablement/server/service-mgmt/service-mgmt.go +0 −6 Original line number Diff line number Diff line Loading @@ -118,7 +118,6 @@ func Init(sandbox string, mep string, host *url.URL, msgQueue *mq.MsgQueue, glob log.Error("Failed connection to Redis DB. Error: ", err) return err } _ = rc.DBFlush(baseKey) log.Info("Connected to Redis DB") // Initialize subscription ID count Loading Loading @@ -147,11 +146,6 @@ func Run() (err error) { // Stop - Stop Service Mgmt func Stop() (err error) { // Flush all app-enablement instance data if baseKey != "" { key := baseKey + "*" _ = rc.DBFlush(key) } return nil } Loading
go-apps/meep-sandbox-ctrl/server/app-ctrl.go +6 −0 Original line number Diff line number Diff line Loading @@ -106,6 +106,12 @@ func appCtrlStop() (err error) { return nil } // Flush App instances func appCtrlFlushAppInstances() (err error) { _ = appCtrl.rc.DBFlush(appCtrl.baseKey) return nil } func applicationsPOST(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Type", "application/json; charset=UTF-8") log.Info("applicationsPOST") Loading
go-apps/meep-sandbox-ctrl/server/sandbox-ctrl.go +6 −0 Original line number Diff line number Diff line Loading @@ -312,6 +312,9 @@ func activateScenario(scenarioName string) (err error) { return err } // Flush App Instances _ = appCtrlFlushAppInstances() // Send Activation message to Virt Engine on Global Message Queue msg := sbxCtrl.mqGlobal.CreateMsg(mq.MsgScenarioActivate, mq.TargetAll, mq.TargetAll) msg.Payload[fieldSandboxName] = sbxCtrl.sandboxName Loading Loading @@ -807,6 +810,9 @@ func ceTerminateScenario(w http.ResponseWriter, r *http.Request) { // Renew APIs _ = sbxCtrl.apiMgr.FlushMepApis() // Flush App Instances _ = appCtrlFlushAppInstances() // Send response w.Header().Set("Content-Type", "application/json; charset=UTF-8") w.WriteHeader(http.StatusOK) Loading