Remove default name for DHCP port.
fixes bug 1048357 This patch removes the code that set the port name for the DHCP agent. Change-Id: Icd769486c5f335d533349ac5e94ac9771c8ca450
This commit is contained in:
parent
b773a0dcab
commit
a42e407066
@ -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])
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user