code: def configure_next_batch_of_vlans(self, switch_ip):
          
  
          next_range = self._pop_vlan_range(
                            switch_ip, const.CREATE_VLAN_BATCH)
          if next_range:
              try:
                  self.driver.set_all_vlan_states(
                      switch_ip, next_range)
              except Exception:
                  with excutils.save_and_reraise_exception():
                      LOG.error("Error encountered restoring vlans "
                          "for switch %(switch_ip)s",
                          {'switch_ip': switch_ip})
                      self._save_switch_vlan_range(switch_ip, [])
  
          vxlan_range = self._get_switch_vxlan_range(switch_ip)
          if vxlan_range:
              try:
                  self._restore_vxlan_entries(switch_ip, vxlan_range)
              except Exception:
                  with excutils.save_and_reraise_exception():
                      LOG.error("Error encountered restoring vxlans "
                          "for switch %(switch_ip)s",
                          {'switch_ip': switch_ip})
                      self._save_switch_vxlan_range(switch_ip, [])
  
          # if no more vlans to restore, we're done. go active.
          if (not self._get_switch_vlan_range(switch_ip) and
              not self._get_switch_vxlan_range(switch_ip)):
              self.set_switch_ip_and_active_state(
                  switch_ip, const.SWITCH_ACTIVE)
              LOG.info("Restore of Nexus switch "
                  "ip %(switch_ip)s is complete",
                  {'switch_ip': switch_ip})
          else:
              LOG.debug(("Restored batch of VLANS on "
                  "Nexus switch ip %(switch_ip)s"),
                  {'switch_ip': switch_ip})
docs: Get next batch of vlans and send them to Nexus.