@@ -42,15 +42,6 @@ def echo(fn):
4242 return res
4343 return wrapped
4444
45- @echo
46- def gethostvmstats (session , args ):
47- collect_host_stats = args ['collectHostStats' ]
48- consolidation_function = args ['consolidationFunction' ]
49- interval = args ['interval' ]
50- start_time = args ['startTime' ]
51- result = hostvmstats .get_stats (session , collect_host_stats , consolidation_function , interval , start_time )
52- return result
53-
5445@echo
5546def setup_iscsi (session , args ):
5647 uuid = args ['uuid' ]
@@ -61,18 +52,6 @@ def setup_iscsi(session, args):
6152 txt = ''
6253 return '> DONE <'
6354
64-
65- @echo
66- def getgateway (session , args ):
67- mgmt_ip = args ['mgmtIP' ]
68- try :
69- cmd = ["bash" , "/opt/cloud/bin/network_info.sh" , "-g" , mgmt_ip ]
70- txt = util .pread2 (cmd )
71- except :
72- txt = ''
73-
74- return txt
75-
7655@echo
7756def preparemigration (session , args ):
7857 uuid = args ['uuid' ]
@@ -1457,8 +1436,8 @@ def getDomRVersion(session, args):
14571436 return txt
14581437
14591438if __name__ == "__main__" :
1460- XenAPIPlugin .dispatch ({"pingtest" : pingtest , "setup_iscsi" :setup_iscsi , "gethostvmstats" : gethostvmstats ,
1461- "getgateway" : getgateway , " preparemigration" : preparemigration ,
1439+ XenAPIPlugin .dispatch ({"pingtest" : pingtest , "setup_iscsi" :setup_iscsi ,
1440+ "preparemigration" : preparemigration ,
14621441 "setIptables" : setIptables , "pingdomr" : pingdomr , "pingxenserver" : pingxenserver ,
14631442 "ipassoc" : ipassoc , "savePassword" : savePassword ,
14641443 "saveDhcpEntry" : saveDhcpEntry , "setFirewallRule" : setFirewallRule ,
0 commit comments