def _output_opts_file(self):
        options, subnet_index_map = self._generate_opts_per_subnet()
        options += self._generate_opts_per_port(subnet_index_map)

        name = self.get_conf_file_name('opts')
        common_utils.replace_file(name, '\n'.join(options))
        return name
Write a dnsmasq compatible options file.
dataset/ETHPy150Open openstack/neutron/neutron/agent/linux/dhcp.py/Dnsmasq._output_opts_file