Skip to content

Commit

Permalink
For a JBOF only permit a single dataplane IP connected (per node) (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
bmeagherix authored Jul 25, 2024
1 parent 003f140 commit 3f3e35f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/middlewared/middlewared/plugins/jbof/crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,13 +607,21 @@ async def hardwire_host(self, mgmt_ip, shelf_index, schema, verrors):
# Failed to connect any IPs => error
verrors.add(schema, f'Unable to communicate with the expansion shelf (node {node})')
return
elif len(connected_shelf_ips) > 1:
# Too many connections exist (currently do not support multipath)
verrors.add(schema, f'Too many connections wired to the expansion shelf (node {node})')
return
self.logger.debug('Configured node %r: %r', node, connected_shelf_ips)
else:
connected_shelf_ips = await self.hardwire_node('', shelf_index, shelf_ip_to_mac)
if not connected_shelf_ips:
# Failed to connect any IPs => error
verrors.add(schema, 'Unable to communicate with the expansion shelf')
return
elif len(connected_shelf_ips) > 1:
# Too many connections exist (currently do not support multipath)
verrors.add(schema, 'Too many connections wired to the expansion shelf')
return
self.logger.debug('Configured node: %r', connected_shelf_ips)

@private
Expand Down

0 comments on commit 3f3e35f

Please sign in to comment.