Authored by chunhua.zhang

no message

@@ -22,7 +22,7 @@ import time, sys, os @@ -22,7 +22,7 @@ import time, sys, os
22 demo: 22 demo:
23 23
24 24
25 -lbswitch = LBSwitch(secretId="AKID6dwpKadiQgbDpXDtyNhppIHPO5qPv5GK", secretKey="ACJkH9mg0DBA1PYpf0E7f3g534wBsQaW", 25 +lbswitch = LBSwitch(secretId="AKID6dwppIHPO5qPv5GK", secretKey="ACJkH9mg0DBsQaW",
26 az1_lb_id="lb-dyh6eucn", az2_lb_id="lb-capto5b5", az3_lb_id="lb-capto5b5", az1_innerlb_id="lb-c26tgo5r") 26 az1_lb_id="lb-dyh6eucn", az2_lb_id="lb-capto5b5", az3_lb_id="lb-capto5b5", az1_innerlb_id="lb-c26tgo5r")
27 27
28 # 全部流量切换到AZ1 28 # 全部流量切换到AZ1
@@ -185,12 +185,5 @@ class LBSwitch: @@ -185,12 +185,5 @@ class LBSwitch:
185 185
186 186
187 187
188 -lbswitch = LBSwitch(secretId="AKID6dwpKadiQgbDpXDtyNhppIHPO5qPv5GK", secretKey="ACJkH9mg0DBA1PYpf0E7f3g534wBsQaW",  
189 - az1_lb_id="lb-dyh6eucn", az2_lb_id="lb-capto5b5", az3_lb_id="lb-capto5b5", az1_innerlb_id="lb-c26tgo5r")  
190 188
191 -#ret = lbswitch.modify_clb_weight(lb_id="lb-e14oxiq3", ip_weight_dict={"10.66.104.15": 10, "10.66.104.13":20})  
192 -#ret = lbswitch.modify_alb_weight(lb_id="lb-fodpm611", domain="*.yoho.cn", ip_weight_dict={"10.66.0.2": 10, "10.66.0.3": 10})  
193 -#ret = lbswitch.all_to_az1()  
194 -ret = lbswitch.all_to_az2()  
195 -print ret  
196 189