Updating network attributes

Network attributes can be updated using the openstack network set and openstack network unset commands.

Getting ready

When updating a network, ensure that you are authenticated as an administrator or are the owner of the network. You will need the following details:

  • Network name or ID
  • Attribute to update

For our example, the following will be used:

  • Network name: COOKBOOK_PROVIDER_NET
  • Attribute to update: router:external

How to do it…

With the OpenStack client installed on our system, we are now able to update the network with the following command:

openstack network set COOKBOOK_PROVIDER_NET --external

No output is returned.

How it works...

Networks are updated with the following syntax:

openstack network set NETWORK \
[--share ...

Get OpenStack Cloud Computing Cookbook - Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.