mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-04 20:55:36 +00:00
Update cheatsheets
This commit is contained in:
29
tldr/openstack-port
Normal file
29
tldr/openstack-port
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# openstack port
|
||||
|
||||
> Manage OpenStack network ports (virtual network interfaces).
|
||||
> More information: <https://docs.openstack.org/python-openstackclient/latest/cli/command-objects/port.html>.
|
||||
|
||||
- List all ports:
|
||||
|
||||
`openstack port list`
|
||||
|
||||
- Show detailed information about a specific port:
|
||||
|
||||
`openstack port show {{port_id_or_name}}`
|
||||
|
||||
- Create a port on a specific network:
|
||||
|
||||
`openstack port create --network {{network_id_or_name}} {{port_name}}`
|
||||
|
||||
- Create a port and assign it a fixed IP `192.168.1.50`:
|
||||
|
||||
`openstack port create --network {{network_id}} --fixed-ip subnet={{subnet_id}},ip-address=192.168.1.50 {{port_name}}`
|
||||
|
||||
- Delete a port:
|
||||
|
||||
`openstack port delete {{port_id_or_name}}`
|
||||
Reference in New Issue
Block a user