Skip to content

Commit

Permalink
Make sure there aren't peding interface changes (#15050)
Browse files Browse the repository at this point in the history
  • Loading branch information
william-gr authored Nov 27, 2024
1 parent 90d1f68 commit 2628174
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/middlewared/middlewared/plugins/virt/instance_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ async def __validate_device(self, device, schema, verrors: ValidationErrors, old
if device['source'] not in await self.middleware.call('virt.device.disk_choices'):
verrors.add(schema, 'Invalid ZVOL choice.')
case 'NIC':
if await self.middleware.call('interface.has_pending_changes'):
raise CallError('There are pending network changes, please resolve before proceeding.')
if device['nic_type'] == 'BRIDGED':
if await self.middleware.call('failover.licensed'):
verrors.add(schema, 'Bridge interface not allowed for HA')
Expand Down

0 comments on commit 2628174

Please sign in to comment.