def do_sync(self):
        while True:
            try:
                vsm_hosts = config.get_vsm_hosts()
                for vsm_ip in vsm_hosts:
                    try:
                        self._sync_vsm(vsm_ip=vsm_ip)
                    except n1kv_exc.VSMConnectionFailed:
                        LOG.warning(_LW('Sync thread exception: VSM '
                                        '%s unreachable.') % vsm_ip)
                    except n1kv_exc.VSMError:
                        LOG.warning(_LW('Sync thread exception: Internal '
                                        'server error on VSM %s.') % vsm_ip)
            except Exception as e:
                LOG.warning(_LW('Sync thread exception: %s') % e.message)
            eventlet.sleep(seconds=self.sync_sleep_duration)
Entry point function for VSM-Neutron sync.
dataset/ETHPy150Open openstack/networking-cisco/networking_cisco/plugins/ml2/drivers/cisco/n1kv/n1kv_sync.py/N1kvSyncDriver.do_sync