compute: Fix key used for NIC fixed IP field
Change-Id: If099ac0e2663228681e87e2f4821b746c8113ffc Signed-off-by: Stephen Finucane <stephenfin@redhat.com> Closes-bug: #2106221
This commit is contained in:
@@ -1947,9 +1947,9 @@ class CreateServer(command.ShowOne):
|
||||
network['port'] = nic['port-id']
|
||||
|
||||
if nic['v4-fixed-ip']:
|
||||
network['fixed'] = nic['v4-fixed-ip']
|
||||
network['fixed_ip'] = nic['v4-fixed-ip']
|
||||
elif nic['v6-fixed-ip']:
|
||||
network['fixed'] = nic['v6-fixed-ip']
|
||||
network['fixed_ip'] = nic['v6-fixed-ip']
|
||||
|
||||
if nic.get('tag'): # tags are optional
|
||||
network['tag'] = nic['tag']
|
||||
|
@@ -1705,7 +1705,7 @@ class TestServerCreate(TestServer):
|
||||
},
|
||||
{
|
||||
'uuid': network_net2.id,
|
||||
'fixed': '10.0.0.2',
|
||||
'fixed_ip': '10.0.0.2',
|
||||
},
|
||||
{
|
||||
'port': port_port1.id,
|
||||
|
Reference in New Issue
Block a user