def forcehasync(self, force, save): """ Use self API to force the sync in secondary Netscaler. @param force set self to true for forcesync @param save set self to YES,if want to save the configuration after sync. @return status of the operation performed. """ try: resource = hasync() resource.force = force resource.save = save option = options() option.action = "force" result = resource.perform_operation(self, "", option) return result except Exception as e: raise e