Skip to content

Commit b16c9f9

Browse files
ramadasmrdmmqz
andauthored
openstack-{network, port, subnet}: add page (#17639)
Add pages openstack-network, openstack-port, openstack-subnet md. Co-authored-by: Dylan <[email protected]>
1 parent 79c18a9 commit b16c9f9

File tree

3 files changed

+80
-0
lines changed

3 files changed

+80
-0
lines changed

pages/common/openstack-network.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# openstack network
2+
3+
> Manage OpenStack network resources.
4+
> More information: <https://docs.openstack.org/python-openstackclient/latest/cli/command-objects/network.html>.
5+
6+
- List all networks:
7+
8+
`openstack network list`
9+
10+
- Show details of a network:
11+
12+
`openstack network show {{network_id_or_name}}`
13+
14+
- Create a new network with a given name:
15+
16+
`openstack network create {{network_name}}`
17+
18+
- Delete a network:
19+
20+
`openstack network delete {{network_id_or_name}}`
21+
22+
- Enable a network:
23+
24+
`openstack network set --enable {{network_id_or_name}}`
25+
26+
- Disable a network:
27+
28+
`openstack network set --disable {{network_id_or_name}}`

pages/common/openstack-port.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# openstack port
2+
3+
> Manage OpenStack network ports (virtual network interfaces).
4+
> More information: <https://docs.openstack.org/python-openstackclient/latest/cli/command-objects/port.html>.
5+
6+
- List all ports:
7+
8+
`openstack port list`
9+
10+
- Show detailed information about a specific port:
11+
12+
`openstack port show {{port_id_or_name}}`
13+
14+
- Create a port on a specific network:
15+
16+
`openstack port create --network {{network_id_or_name}} {{port_name}}`
17+
18+
- Create a port and assign it a fixed IP `192.168.1.50`:
19+
20+
`openstack port create --network {{network_id}} --fixed-ip subnet={{subnet_id}},ip-address=192.168.1.50 {{port_name}}`
21+
22+
- Delete a port:
23+
24+
`openstack port delete {{port_id_or_name}}`

pages/common/openstack-subnet.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# openstack subnet
2+
3+
> Manage OpenStack subnets (IP address blocks within a network).
4+
> More information: <https://docs.openstack.org/python-openstackclient/latest/cli/command-objects/subnet.html>.
5+
6+
- List all subnets:
7+
8+
`openstack subnet list`
9+
10+
- Show details of a specific subnet:
11+
12+
`openstack subnet show {{subnet_id_or_name}}`
13+
14+
- List subnets associated with a network:
15+
16+
`openstack subnet list --network {{network_id_or_name}}`
17+
18+
- Create a subnet with subnet range `192.168.0.0/24` in a given network:
19+
20+
`openstack subnet create --network {{network_id_or_name}} --subnet-range 192.168.0.0/24 {{subnet_name}}`
21+
22+
- Delete a subnet:
23+
24+
`openstack subnet delete {{subnet_id_or_name}}`
25+
26+
- Update a subnet with DNS `8.8.8.8` and set a new name:
27+
28+
`openstack subnet set --dns-nameserver 8.8.8.8 --name {{new_subnet_name}} {{subnet_id}}`

0 commit comments

Comments
 (0)