Make Dnsmasq_interface configurable
This commit is contained in:
		| @@ -48,6 +48,7 @@ flags.DECLARE('auth_driver', 'nova.auth.manager') | ||||
| flags.DECLARE('network_size', 'nova.network.manager') | ||||
| flags.DECLARE('num_networks', 'nova.network.manager') | ||||
| flags.DECLARE('update_dhcp_on_disassociate', 'nova.network.manager') | ||||
| flags.DEFINE_string('dnsmasq_interface', 'br0', 'Default Dnsmasq interface') | ||||
|  | ||||
| LOG = logging.getLogger('nova.dhcpbridge') | ||||
|  | ||||
| @@ -103,7 +104,8 @@ def main(): | ||||
|     utils.default_flagfile(flagfile) | ||||
|     argv = FLAGS(sys.argv) | ||||
|     logging.setup() | ||||
|     interface = os.environ.get('DNSMASQ_INTERFACE', 'br0') | ||||
|     # check ENV first so we don't break any older deploys | ||||
|     interface = os.environ.get('DNSMASQ_INTERFACE', FLAGS.dnsmasq_interface) | ||||
|     if int(os.environ.get('TESTING', '0')): | ||||
|         from nova.tests import fake_flags | ||||
|     action = argv[1] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Josh Kearney
					Josh Kearney