openstack Verified current stable Not installed? Cloud Infrastructure

Openstack / Enable Network

Enable Network

Enables a specified network in OpenStack.

$
Terminal
openstack network set --enable <network_id_or_name>

When To Use

When restoring service to a previously disabled network.

Pro Tip

Use `--no-async` to complete the operation synchronously and ensure immediate update on network status.

Command Builder

Tune the command before you copy it

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

Anatomy of Output

Understanding the result

+--------------------------------------+---------------------------------+ Enable Confirmation

Indicates the network has been enabled successfully.

| ID | net-restore-01 | Network ID

The unique identifier of the enabled network.

| Status | ACTIVE | Network Status

Updated operational state, confirming the network is active.

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

End of enable confirmation.

Troubleshooting

Common pitfalls

Network not found: net-invalid

Solution: Verify the identifier for correctness.

You are not authorized to perform this action

Solution: Check user roles and permissions related to network operations.

Network already enabled

Solution: Assess current network status; if active, no changes are needed.

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.
--enable
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.