==== port ==== A **port** is a connection point for attaching a single device, such as the NIC of a server, to a network. The port also describes the associated network configuration, such as the MAC and IP addresses to be used on that port. Network v2 port create ----------- Create new port .. program:: port create .. code:: bash os port create --network [--description ] [--fixed-ip subnet=,ip-address=] [--device ] [--device-owner ] [--vnic-type ] [--binding-profile ] [--host ] [--enable | --disable] [--mac-address ] [--security-group | --no-security-group] [--project [--project-domain ]] .. option:: --network Network this port belongs to (name or ID) .. option:: --description Description of this port .. option:: --fixed-ip subnet=,ip-address= Desired IP and/or subnet (name or ID) for this port: subnet=,ip-address= (repeat option to set multiple fixed IP addresses) .. option:: --device Port device ID .. option:: --device-owner Device owner of this port. This is the entity that uses the port (for example, network:dhcp). .. option:: --vnic-type VNIC type for this port (direct | direct-physical | macvtap | normal | baremetal, default: normal) .. option:: --binding-profile Custom data to be passed as binding:profile. Data may be passed as = or JSON. (repeat option to set multiple binding:profile data) .. option:: --host Allocate port on host ```` (ID only) .. option:: --enable Enable port (default) .. option:: --disable Disable port .. option:: --mac-address MAC address of this port .. option:: --security-group Security group to associate with this port (name or ID) (repeat option to set multiple security groups) .. option:: --no-security-group Associate no security groups with this port .. option:: --project Owner's project (name or ID) .. option:: --project-domain Domain the project belongs to (name or ID). This can be used in case collisions between project names exist. .. _port_create-name: .. describe:: Name of this port port delete ----------- Delete port(s) .. program:: port delete .. code:: bash os port delete [ ...] .. _port_delete-port: .. describe:: Port(s) to delete (name or ID) port list --------- List ports .. program:: port list .. code:: bash os port list [--device-owner ] [--router | --server ] [--network ] [--mac-address ] [--long] .. option:: --device-owner List only ports with the specified device owner. This is the entity that uses the port (for example, network:dhcp). .. option:: --router List only ports attached to this router (name or ID) .. option:: --server List only ports attached to this server (name or ID) .. option:: --network List only ports attached to this network (name or ID) .. option:: --mac-address List only ports with this MAC address .. option:: --long List additional fields in output port set -------- Set port properties .. program:: port set .. code:: bash os port set [--description ] [--fixed-ip subnet=,ip-address=] [--no-fixed-ip] [--device ] [--device-owner ] [--vnic-type ] [--binding-profile ] [--no-binding-profile] [--host ] [--enable | --disable] [--name ] [--security-group ] [--no-security-group] .. option:: --description Description of this port .. option:: --fixed-ip subnet=,ip-address= Desired IP and/or subnet (name or ID) for this port: subnet=,ip-address= (repeat option to set multiple fixed IP addresses) .. option:: --no-fixed-ip Clear existing information of fixed IP addresses. Specify both --fixed-ip and --no-fixed-ip to overwrite the current fixed IP addresses. .. option:: --device Port device ID .. option:: --device-owner Device owner of this port. This is the entity that uses the port (for example, network:dhcp). .. option:: --vnic-type VNIC type for this port (direct | direct-physical | macvtap | normal | baremetal, default: normal) .. option:: --binding-profile Custom data to be passed as binding:profile. Data may be passed as = or JSON. (repeat option to set multiple binding:profile data) .. option:: --no-binding-profile Clear existing information of binding:profile. Specify both --binding-profile and --no-binding-profile to overwrite the current binding:profile information. .. option:: --host Allocate port on host ```` (ID only) .. option:: --enable Enable port .. option:: --disable Disable port .. option:: --name Set port name .. option:: --security-group Security group to associate with this port (name or ID) (repeat option to set multiple security groups) .. option:: --no-security-group Clear existing security groups associated with this port .. _port_set-port: .. describe:: Port to modify (name or ID) port show --------- Display port details .. program:: port show .. code:: bash os port show .. _port_show-port: .. describe:: Port to display (name or ID) port unset ---------- Unset port properties .. program:: port unset .. code:: bash os port unset [--fixed-ip subnet=,ip-address= [...]] [--binding-profile [...]] [--security-group [...]] .. option:: --fixed-ip subnet=,ip-address= Desired IP and/or subnet (name or ID) which should be removed from this port: subnet=,ip-address= (repeat option to unset multiple fixed IP addresses) .. option:: --binding-profile Desired key which should be removed from binding-profile (repeat option to unset multiple binding:profile data) .. option:: --security-group Security group which should be removed from this port (name or ID) (repeat option to unset multiple security groups) .. _port_unset-port: .. describe:: Port to modify (name or ID)