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:
Stephen Finucane
2025-05-18 15:11:20 +01:00
parent 79de137152
commit 32762bcda6
2 changed files with 3 additions and 3 deletions

View File

@@ -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']

View File

@@ -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,