openstack Verified current stable Not installed? Cloud Infrastructure

Openstack / Disable Network

Disable Network

Disables a specified network in OpenStack.

$
Terminal
openstack network set --disable <network_id_or_name>

When To Use

Before performing maintenance on services connected to the network.

Pro Tip

Use `--no-async` to confirm synchronous disabling and immediate status feedback post-execution.

Command Builder

Tune the command before you copy it

Back to syntax
$
Generated Command
openstack network set --disable <network_id_or_name>

Anatomy of Output

Understanding the result

+--------------------------------------+---------------------------------+ Disable Confirmation

Confirms the network has been disabled successfully.

| ID | net-disable-01 | Network ID

Unique identifier for the disabled network.

| Status | DOWN | Network Status

Updated operational state confirming the network is disabled.

+--------------------------------------+---------------------------------+ End Output

End of disable confirmation.

Troubleshooting

Common pitfalls

Network not found: net-invalid

Solution: Verify the network ID or name for accuracy.

You are not authorized to perform this action

Solution: Review user permissions related to network disabling.

Network already disabled

Solution: Check the current status; no action needed if already disabled.

Command Breakdown

What each part is doing

openstack
Base Command
The executable that performs this operation. Here it runs Openstack before the shell applies any redirect operators.
<network_id_or_name>
network id or name
The value supplied for network id or name.
--disable
Command Option
Tool-specific option used by this command invocation.

Alternative Approaches

Comparable commands in other tools

Alternative cloud infrastructure tools for the same job.