修改命令
ID(主键):
命令本身:
命令参数:
运行环境:
命令例子:
命令分类:
--请选择--
文件类
服务类
系统类
用户及权限类
openstack类
命令描述:
heat_template_version: 2014-10-16 description: Generated template resources: network_1: type: OS::Neutron::Net properties: admin_state_up: true name: Heat-Network shared: false subnet_1: type: OS::Neutron::Subnet properties: allocation_pools: - end: 10.20.2.100 start: 10.20.2.10 cidr: 10.20.2.0/24 enable_dhcp: true host_routes: [] ip_version: 4 name: Heat-Subnet network_id: get_resource: network_1 编写Heat模板create_net.yaml,创建名为Heat-Network网络,选择不共享;创建子网名为Heat-Subnet,子网网段设置为10.20.2.0/24,开启DHCP服务,地址池为10.20.2.20-10.20.2.100。