Skip to content

Commit

Permalink
NAS-133536 / 25.04 / Add iSER to rdma.capable_protocols (#15381)
Browse files Browse the repository at this point in the history
* Add ISER to rdma.capable_protocols
  • Loading branch information
bmeagherix authored Jan 13, 2025
1 parent e70d39b commit 2d8a1d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/middlewared/middlewared/api/v25_04_0/rdma.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ class RdmaCapableProtocolsArgs(BaseModel):


class RdmaCapableProtocolsResult(BaseModel):
result: list[Literal["NFS"]]
result: list[Literal["ISER", "NFS"]]
2 changes: 1 addition & 1 deletion src/middlewared/middlewared/plugins/rdma/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

class RDMAprotocols(enum.Enum):
NFS = 'NFS'
ISER = 'iSER'
ISER = 'ISER'

def values():
return [a.value for a in RDMAprotocols]
2 changes: 1 addition & 1 deletion src/middlewared/middlewared/plugins/rdma/rdma.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,5 +132,5 @@ async def capable_protocols(self):
is_ent = await self.middleware.call('system.is_enterprise')
if is_ent and 'MINI' not in await self.middleware.call('truenas.get_chassis_hardware'):
if await self.middleware.call('rdma.get_link_choices', True):
result.append(RDMAprotocols.NFS.value)
result.extend([RDMAprotocols.NFS.value, RDMAprotocols.ISER.value])
return result

0 comments on commit 2d8a1d1

Please sign in to comment.