Commit 6a1946ea authored by David Johnson's avatar David Johnson

On binding update from dhcp server node, add dhcp service role to metadata file.

parent d8b5f745
Pipeline #1133 skipped
......@@ -408,6 +408,11 @@ class CapnetControllerMetadataManager(object):
role = 'node'
pass
if 'port' in binding and 'device_owner' in binding['port'] \
and binding['port']['device_owner'] == 'network:dhcp':
role = "%s:dhcp" % (role,)
pass
# Uplinks are special!
if role == 'uplink':
port_id = binding['port_id']
......@@ -1730,8 +1735,8 @@ class CapnetNeutronAgent(service.Service):
pass
# We delete flows and controllers when we restart, for now.
br.del_controller()
br.remove_all_flows()
#br.del_controller()
#br.remove_all_flows()
self.phys_brs[physical_network] = br
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment