mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-22 17:23:58 +02:00
openstack-{network, port, subnet}: add page (#17639)
Add pages openstack-network, openstack-port, openstack-subnet md. Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
This commit is contained in:
parent
79c18a9728
commit
b16c9f9e99
3 changed files with 80 additions and 0 deletions
28
pages/common/openstack-network.md
Normal file
28
pages/common/openstack-network.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
# openstack network
|
||||
|
||||
> Manage OpenStack network resources.
|
||||
> More information: <https://docs.openstack.org/python-openstackclient/latest/cli/command-objects/network.html>.
|
||||
|
||||
- List all networks:
|
||||
|
||||
`openstack network list`
|
||||
|
||||
- Show details of a network:
|
||||
|
||||
`openstack network show {{network_id_or_name}}`
|
||||
|
||||
- Create a new network with a given name:
|
||||
|
||||
`openstack network create {{network_name}}`
|
||||
|
||||
- Delete a network:
|
||||
|
||||
`openstack network delete {{network_id_or_name}}`
|
||||
|
||||
- Enable a network:
|
||||
|
||||
`openstack network set --enable {{network_id_or_name}}`
|
||||
|
||||
- Disable a network:
|
||||
|
||||
`openstack network set --disable {{network_id_or_name}}`
|
24
pages/common/openstack-port.md
Normal file
24
pages/common/openstack-port.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# 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}}`
|
28
pages/common/openstack-subnet.md
Normal file
28
pages/common/openstack-subnet.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
# openstack subnet
|
||||
|
||||
> Manage OpenStack subnets (IP address blocks within a network).
|
||||
> More information: <https://docs.openstack.org/python-openstackclient/latest/cli/command-objects/subnet.html>.
|
||||
|
||||
- List all subnets:
|
||||
|
||||
`openstack subnet list`
|
||||
|
||||
- Show details of a specific subnet:
|
||||
|
||||
`openstack subnet show {{subnet_id_or_name}}`
|
||||
|
||||
- List subnets associated with a network:
|
||||
|
||||
`openstack subnet list --network {{network_id_or_name}}`
|
||||
|
||||
- Create a subnet with subnet range `192.168.0.0/24` in a given network:
|
||||
|
||||
`openstack subnet create --network {{network_id_or_name}} --subnet-range 192.168.0.0/24 {{subnet_name}}`
|
||||
|
||||
- Delete a subnet:
|
||||
|
||||
`openstack subnet delete {{subnet_id_or_name}}`
|
||||
|
||||
- Update a subnet with DNS `8.8.8.8` and set a new name:
|
||||
|
||||
`openstack subnet set --dns-nameserver 8.8.8.8 --name {{new_subnet_name}} {{subnet_id}}`
|
Loading…
Add table
Reference in a new issue