Red Hat Training

A Red Hat training course is available for Red Hat OpenStack Platform

12.35. ironic port-create

usage: ironic port-create -a <address> -n <node> [-l <key=value>]
                          [--pxe-enabled <boolean>] [-e <key=value>]
                          [-u <uuid>]
Create a new port.

Optional arguments

-a <address>, --address <address>


      MAC address for this port.

-n <node>, --node <node>, --node_uuid <node>


      UUID of the node that this port belongs to.

-l <key=value>, --local-link-connection <key=value>


      Key/value metadata describing Local link connection
      information. Valid keys are switch_info, switch_id,
      port_id.Can be specified multiple times.

--pxe-enabled <boolean>


      Indicates whether this Port should be used when PXE
      booting this Node.

-e <key=value>, --extra <key=value>


      Record arbitrary key/value metadata. Can be specified
      multiple times.

-u <uuid>, --uuid <uuid>


      UUID of the port.