]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Remove default name for DHCP port.
authorMark McClain <mark.mcclain@dreamhost.com>
Sun, 9 Sep 2012 19:19:46 +0000 (15:19 -0400)
committerMark McClain <mark.mcclain@dreamhost.com>
Sun, 9 Sep 2012 19:25:39 +0000 (15:25 -0400)
fixes bug 1048357

This patch removes the code that set the port name for the DHCP agent.

Change-Id: Icd769486c5f335d533349ac5e94ac9771c8ca450

quantum/db/dhcp_rpc_base.py
quantum/tests/unit/test_db_rpc_base.py

index 4f07527d7513c9d7d3c92244309b67e8eb603dd9..42bee7812f2e934a9f60b03087b48954138b1922 100644 (file)
@@ -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])
 
index 279079f91cced698fd974e469402ea5cd47853a7..dc61617950679eb573bf2bd7652155776957519b 100644 (file)
@@ -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)