Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ops
/
monitor-service
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
qinchao
7 years ago
Commit
35ac0940f3f1ce891972fcafd8a328e4ce47a6ed
1 parent
57adc6eb
双中心切换
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
monitor-service-switch/src/main/java/com/monitor/switchs/centerSwitch/service/SwitchService.java
monitor-service-switch/src/main/java/com/monitor/switchs/centerSwitch/service/SwitchService.java
View file @
35ac094
...
...
@@ -2,6 +2,7 @@ package com.monitor.switchs.centerSwitch.service;
import
com.contants.AlarmGroupContants
;
import
com.monitor.cloudtools.util.CommodUtil
;
import
com.monitor.common.ProjectConstant
;
import
com.monitor.common.service.AlarmMsgService
;
import
com.monitor.model.domain.CenterSwitchModel
;
import
com.monitor.switchs.SwitchCmdUtil
;
...
...
@@ -39,7 +40,7 @@ public class SwitchService {
private
static
Random
random
=
new
Random
();
private
final
String
ansible_switch_py
=
"ssh master@
10.66.202.46
/usr/bin/python /home/master/qcloud-switch/one_key_switch.py --zone="
;
private
final
String
ansible_switch_py
=
"ssh master@
"
+
ProjectConstant
.
DEPLOY_IP
+
"
/usr/bin/python /home/master/qcloud-switch/one_key_switch.py --zone="
;
public
String
switchWithAnsible
(
String
toCloud
){
//String logId = "switch_idc_py_"+count.incrementAndGet();
...
...
Please
register
or
login
to post a comment