vinfra service compute network set

Modify compute network parameters:

usage: vinfra service compute network set [--dhcp | --no-dhcp]
                                          [--dns-nameserver <dns-nameserver>]
                                          [--allocation-pool <allocation-pool>]
                                          [--gateway <gateway> | --no-gateway]
                                          [--rbac-policies <rbac-policies>]
                                          [--name <name>] <network>
--dhcp
Enable DHCP.
--no-dhcp
Disable DHCP.
--dns-nameserver <dns-nameserver>
DNS server IP address. This option can be used multiple times.
--allocation-pool <allocation-pool>
Allocation pool to create inside the network in the format: ip_addr_start-ip_addr_end. This option can be used multiple times.
--gateway <gateway>
Gateway IP address
--no-gateway
Do not configure a gateway for this network.
--rbac-policies <rbac-policies>

Comma-separated list of RBAC policies in the format: <target>:<target_id>:<action> | none. Valid targets: project, domain. Valid actions: direct, full, routed. ‘*’ is valid target_id for all targets. Pass none to clear out all existing policies.

Example: domain:default:routed,project:uuid1:full

--name <name>
A new name for the network
<network>
Network ID or name

Example:

# vinfra service compute network set mypubnet --rbac-policies none
+------------------+--------------------------------------+
| Field            | Value                                |
+------------------+--------------------------------------+
| allocation_pools | 10.136.18.141-10.136.18.148          |
| cidr             | 10.136.16.0/22                       |
| dns_nameservers  | 10.35.11.7                           |
| enable_dhcp      | True                                 |
| gateway_ip       | 10.136.16.1                          |
| id               | 22674f9d-1c94-4953-b79b-7f6029ee9bd0 |
| ip_version       | 4                                    |
| ipam_enabled     | True                                 |
| name             | mypubnet                             |
| physical_network | Public                               |
| project_id       | c22613639b3147e0b22ef057b87698fe     |
| rbac_policies    | []                                   |
| router_external  | False                                |
| shared           | False                                |
| tags             | []                                   |
| type             | physical                             |
| vlan_id          |                                      |
+------------------+--------------------------------------+

This command disables network access for the compute network mypubnet.