|
|
|
@ -87,15 +87,15 @@ def get_ip_mac_type(client_type = None):
|
|
|
|
|
#try:
|
|
|
|
|
results.append ( getIpLocal() )
|
|
|
|
|
#except:
|
|
|
|
|
#results.append ('no_ip')
|
|
|
|
|
#results.append ('no_ip')
|
|
|
|
|
#try:
|
|
|
|
|
results.append ( getHwAddr())
|
|
|
|
|
#except:
|
|
|
|
|
#results.append ('no_mac')
|
|
|
|
|
#results.append ('no_mac')
|
|
|
|
|
if client_type:
|
|
|
|
|
results.append (client_type)
|
|
|
|
|
results.append (client_type)
|
|
|
|
|
else:
|
|
|
|
|
results.append ('console')
|
|
|
|
|
results.append ('console')
|
|
|
|
|
return results
|
|
|
|
|
|
|
|
|
|
def client_install(client):
|
|
|
|
@ -123,7 +123,7 @@ def create_obj(client, method_name):
|
|
|
|
|
|
|
|
|
|
info = operation.methods.get(method_name)
|
|
|
|
|
if not info:
|
|
|
|
|
raise suds.MethodNotFound(method_name)
|
|
|
|
|
raise suds.MethodNotFound(method_name)
|
|
|
|
|
type_op = info.binding.input.param_defs(info)[param][inf_param]
|
|
|
|
|
str_type = type_op.__getattribute__('type')[param_type]
|
|
|
|
|
|
|
|
|
|