]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add DNS and DHCP log into dhcp agent
authorchangzhi <changzhi@unitedstack.com>
Fri, 17 Jul 2015 02:43:09 +0000 (10:43 +0800)
committerchangzhi <changzhi@unitedstack.com>
Mon, 3 Aug 2015 08:10:20 +0000 (16:10 +0800)
commite79d602e3821955507907a872df6da4cc4d82e2f
treec3cafd21b3271f6750c1ecc2eeda4518ee5ad82b
parent5e925b23d2fc610365717acabbb17890ae7e5fcd
Add DNS and DHCP log into dhcp agent

Enable set DNS and DHCP log of dnsmasq for dhcp agent
Add a new configuration named 'dnsmasq_base_log_dir'
in dhcp_agent.ini.

This entry should be a path of log file. It should
like this:

    dnsmasq_base_log_dir=/tmp

And the DNS and DHCP log will be written into the file
"/tmp/aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa/dhcp_dns_log".
The dir path will be created if the given path doesn't exists.

DocImpact

Closes-Bug: #1475636
Change-Id: I87be346ec5059eaa8a29f48fe53933af82d1b155
etc/dhcp_agent.ini
neutron/agent/dhcp/config.py
neutron/agent/linux/dhcp.py
neutron/tests/unit/agent/linux/test_dhcp.py