参数

参数名字 描述
subnet
必填

Value:

Must be a Hash

subnet[name]
必填

子网名


Value:

Must be String

subnet[network]
必填

子网网络


Value:

Must be String

subnet[mask]
必填

子网掩码


Value:

Must be String

subnet[gateway]
选填 , 允许空值

这个子网的主 DNS


Value:

Must be String

subnet[dns_primary]
选填 , 允许空值

这个子网的主 DNS


Value:

Must be String

subnet[dns_secondary]
选填 , 允许空值

这个子网的辅 DNS


Value:

Must be String

subnet[ipam]
选填 , 允许空值

这个子网的 IP 地址自动提示模式,有效值为 “DHCP”、“Internal DB”、“None”。


Value:

Must be String

subnet[from]
选填 , 允许空值

IP 自动提示的起始 IP 地址


Value:

Must be String

subnet[to]
选填 , 允许空值

为 IP 自动提示功能提供 IP 地址结尾


Value:

Must be String

subnet[vlanid]
选填 , 允许空值

这个子网的 VLAN ID


Value:

Must be String

subnet[domain_ids]
选填 , 允许空值

该部分子网的域名


Value:

Must be an array of any type

subnet[dhcp_id]
选填 , 允许空值

本子网使用的DHCP代理


Value:

Must be a number.

subnet[tftp_id]
选填 , 允许空值

本子网使用的 TFTP 代理服务器


Value:

Must be a number.

subnet[dns_id]
选填 , 允许空值

本子网使用的域名代理


Value:

Must be a number.

subnet[boot_mode]
选填 , 允许空值

分配给这个子网接口的默认引导模式,有效值为 “Static”,“DHCP”。


Value:

Must be String