diff options
author | Zuul <zuul@review.openstack.org> | 2019-02-19 00:49:10 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2019-02-19 00:49:10 +0000 |
commit | e1552a970aa909d177d82a9eadfd34af8c96d3a1 (patch) | |
tree | 0a6da3f1e3511720f336477d42e1605c1e6e738d | |
parent | 96a8da367524886fe5d403656f3e5ee27911206a (diff) | |
parent | c8abede9b1c2e5f88a7894da798a097d7f55ee9d (diff) | |
download | python-ironicclient-e1552a970aa909d177d82a9eadfd34af8c96d3a1.tar.gz |
Merge "Add 'hostname' to port's local link connection"
-rw-r--r-- | ironicclient/osc/v1/baremetal_port.py | 14 | ||||
-rw-r--r-- | releasenotes/notes/add-hostname-to-port-local-link-connection-0d4ae64b0c24bf52.yaml | 5 |
2 files changed, 14 insertions, 5 deletions
diff --git a/ironicclient/osc/v1/baremetal_port.py b/ironicclient/osc/v1/baremetal_port.py index df70da9..d9bc61f 100644 --- a/ironicclient/osc/v1/baremetal_port.py +++ b/ironicclient/osc/v1/baremetal_port.py @@ -56,7 +56,7 @@ class CreateBaremetalPort(command.ShowOne): metavar="<key=value>", 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 0000000..920984e --- /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. |