78.12. 子网未设置
取消设置子网属性
使用方法:
openstack subnet unset [-h] [--allocation-pool start=<ip-address>,end=<ip-address>] [--gateway] [--dns-nameserver <dns-nameserver>] [--host-route destination=<subnet>,gateway=<ip-address>] [--service-type <service-type>] [--tag <tag> | --all-tag] <subnet>
值 | 概述 |
---|---|
<subnet> | 要修改的子网(名称或 id) |
值 | 概述 |
---|---|
-h, --help | 显示帮助信息并退出 |
--allocation-pool start=<ip-address>,end=<ip-address> | 要从这个子网中删除的分配池 ip 地址,例如:start=192.168.199.2,end=192.168.199.254 (repeat 选项用于取消设置多个分配池) |
--gateway | 从这个子网中删除网关 ip |
--dns-nameserver <dns-nameserver> | 要从这个子网中删除的 DNS 服务器(repeat 选项用于取消设置多个 DNS 服务器) |
--host-route destination=<subnet>,gateway=<ip-address> | 要从这个子网中删除的路由,例如: destination=10.10.0.0/16,gateway=192.168.71.254 destination: destination subnet (在 CIDR 表示法)gateway: nexthop IP address (repeat option to unset multiple host routes) |
--service-type <service-type> | 要从这个子网中删除的服务类型,如 network:floatingip_agent_gateway。必须是网络端口的有效设备所有者值(重复选项可取消设置多个服务类型) |
--tag <tag> | 要从子网中删除的标签(重复选项以移除多个标签) |
--all-tag | 清除与子网关联的所有标签 |