def disable_gslb_vserver(self, client) : try : gslbvserver.disable(client, "gvip1") print("disable_gslb_vserver - Done") except nitro_exception as e : print("Exception::disable_gslb_vserver::errorcode="+str(e.errorcode)+",message="+ e.message) except Exception as e: print("Exception::disable_gslb_vserver::message="+str(e.args))
def do_state_change(client, module, gslb_vserver_proxy): if module.params['disabled']: log('Disabling glsb_vserver') result = gslbvserver.disable(client, gslb_vserver_proxy.actual) else: log('Enabling gslbvserver') result = gslbvserver.enable(client, gslb_vserver_proxy.actual) return result