def _restore_vxlan_entries(self, switch_ip, vlans):
        """Restore vxlan entries on a Nexus switch."""

        count = 1
        conf_str = ''
        vnsegment_sent = 0
        # At this time, this will only configure vni information when needed
        while const.CREATE_VLAN_BATCH < vnsegment_sent and vlans:
            vlan_id, vni, vlan_name = vlans.pop(0)
            # Add it to the batch
            conf_str += self.driver.get_create_vlan(
                            switch_ip, vlan_id, vni)
            if (count == const.CREATE_VLAN_SEND_SIZE):
                self.driver.send_edit_string(switch_ip, conf_str)
                vnsegment_sent += count
                conf_str = ''
                count = 1
            else:
                count += 1

        if conf_str:
            vnsegment_sent += count
            self.driver.send_edit_string(switch_ip, conf_str)
            conf_str = ''
        LOG.debug("Switch %s VLAN vn-segment replay summary: %d",
                  switch_ip, vnsegment_sent)
dataset/ETHPy150Open openstack/networking-cisco/networking_cisco/plugins/ml2/drivers/cisco/nexus/mech_cisco_nexus.py/CiscoNexusMechanismDriver._restore_vxlan_entries/swapped operands of `<`