Change admin_state_up to True when create port

VM can not get IP address by DHCP if the port's admin_state_up
is False.

Change-Id: I684312581522483fb4a040ebb8e939b4fde78e5f
This commit is contained in:
changzhi 2015-05-31 16:32:03 +08:00
parent 1f2cb05d67
commit 786efb321a
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ class DeviceNova(abstract_driver.DeviceAbstractDriver):
port_data = {
'tenant_id': tenant_id,
'network_id': network_id,
'admin_state_up': False,
'admin_state_up': True,
'fixed_ips': attributes.ATTR_NOT_SPECIFIED,
}
if subnet_id: