diff --git a/quantum/db/dhcp_rpc_base.py b/quantum/db/dhcp_rpc_base.py index 4f07527d751..42bee7812f2 100644 --- a/quantum/db/dhcp_rpc_base.py +++ b/quantum/db/dhcp_rpc_base.py @@ -116,7 +116,7 @@ class DhcpRpcCallbackMixin(object): network_id=network_id, tenant_id=network['tenant_id'], mac_address=attributes.ATTR_NOT_SPECIFIED, - name='DHCP Agent', + name='', device_owner='network:dhcp', fixed_ips=[dict(subnet_id=s) for s in dhcp_enabled_subnet_ids]) diff --git a/quantum/tests/unit/test_db_rpc_base.py b/quantum/tests/unit/test_db_rpc_base.py index 279079f91cc..dc616179506 100644 --- a/quantum/tests/unit/test_db_rpc_base.py +++ b/quantum/tests/unit/test_db_rpc_base.py @@ -119,7 +119,7 @@ class TestDhcpRpcCallackMixin(unittest.TestCase): def test_get_dhcp_port_create_new(self): self.plugin.get_network.return_value = dict(tenant_id='tenantid') create_spec = dict(tenant_id='tenantid', device_id='devid', - network_id='netid', name='DHCP Agent', + network_id='netid', name='', admin_state_up=True, device_owner='network:dhcp', mac_address=mock.ANY)