diff --git a/ironicclient/osc/v1/baremetal_port.py b/ironicclient/osc/v1/baremetal_port.py index df70da9fa..d9bc61f69 100644 --- a/ironicclient/osc/v1/baremetal_port.py +++ b/ironicclient/osc/v1/baremetal_port.py @@ -56,7 +56,7 @@ class CreateBaremetalPort(command.ShowOne): metavar="", action='append', help=_("Record arbitrary key/value metadata. " - "Can be specified multiple times.") + "Argument can be specified multiple times.") ) parser.add_argument( '--local-link-connection', @@ -64,8 +64,10 @@ class CreateBaremetalPort(command.ShowOne): action='append', help=_("Key/value metadata describing Local link connection " "information. Valid keys are 'switch_info', 'switch_id', " - "and 'port_id'. The keys 'switch_id' and 'port_id' are " - "required. Can be specified multiple times.") + "'port_id' and 'hostname'. The keys 'switch_id' and " + "'port_id' are required. In case of Smart NIC port, " + "the keys 'port_id' and 'hostname' are required. " + "Argument can be specified multiple times.") ) parser.add_argument( '-l', @@ -299,8 +301,10 @@ class SetBaremetalPort(command.Command): action='append', help=_("Key/value metadata describing local link connection " "information. Valid keys are 'switch_info', 'switch_id', " - "and 'port_id'. The keys 'switch_id' and 'port_id' are " - "required. Can be specified multiple times.") + "'port_id' and 'hostname'. The keys 'switch_id' and " + "'port_id' are required. In case of Smart NIC port, " + "the keys 'port_id' and 'hostname' are required. " + "Argument can be specified multiple times.") ) pxe_enabled_group = parser.add_mutually_exclusive_group(required=False) pxe_enabled_group.add_argument( diff --git a/releasenotes/notes/add-hostname-to-port-local-link-connection-0d4ae64b0c24bf52.yaml b/releasenotes/notes/add-hostname-to-port-local-link-connection-0d4ae64b0c24bf52.yaml new file mode 100644 index 000000000..920984eab --- /dev/null +++ b/releasenotes/notes/add-hostname-to-port-local-link-connection-0d4ae64b0c24bf52.yaml @@ -0,0 +1,5 @@ +--- +prelude: > + Support Smart NIC ports. Adding local link connection attributes + 'port_id' and 'hostname' when creating port with port argument + ``--is-smartnic`` means that it's a Smart NIC port.