Accept port and portgroup as volume connector types
This patch adds 'port' and 'portgroup' as types of volume connectors. These types can be used to get an IP address for an iSCSI initiator, which is required for some volume backend, in the case where a port or a portgroup is used for an iSCSI initiator. Closes-Bug: #1715529 Change-Id: I43801332057cb3bf614db0d26181df286c78adae
This commit is contained in:
parent
5a427eed5c
commit
357c670dfe
@ -45,9 +45,9 @@ class CreateBaremetalVolumeConnector(command.ShowOne):
|
||||
dest='type',
|
||||
metavar="<type>",
|
||||
required=True,
|
||||
choices=('iqn', 'ip', 'mac', 'wwnn', 'wwpn'),
|
||||
choices=('iqn', 'ip', 'mac', 'wwnn', 'wwpn', 'port', 'portgroup'),
|
||||
help=_("Type of the volume connector. Can be 'iqn', 'ip', 'mac', "
|
||||
"'wwnn', 'wwpn'."))
|
||||
"'wwnn', 'wwpn', 'port', 'portgroup'."))
|
||||
parser.add_argument(
|
||||
'--connector-id',
|
||||
dest='connector_id',
|
||||
@ -279,9 +279,9 @@ class SetBaremetalVolumeConnector(command.Command):
|
||||
'--type',
|
||||
dest='type',
|
||||
metavar="<type>",
|
||||
choices=('iqn', 'ip', 'mac', 'wwnn', 'wwpn'),
|
||||
choices=('iqn', 'ip', 'mac', 'wwnn', 'wwpn', 'port', 'portgroup'),
|
||||
help=_("Type of the volume connector. Can be 'iqn', 'ip', 'mac', "
|
||||
"'wwnn', 'wwpn'."))
|
||||
"'wwnn', 'wwpn', 'port', 'portgroup'."))
|
||||
parser.add_argument(
|
||||
'--connector-id',
|
||||
dest='connector_id',
|
||||
|
Loading…
Reference in New Issue
Block a user