3 define_request :create_network, :inherit => [:openstack, :common, :v2, :admin, :base] do
5 meta :service, :compute
8 'http://api.openstack.org/api-ref-compute.html#ext-os-networks'
11 param :label, :required => true
12 param :bridge, :required => false
13 param :bridge_interface, :required => false
14 param :cidr, :required => false
15 param :cidr_v6, :required => false
16 param :dns1, :required => false
17 param :dns2, :required => false
18 param :gateway, :required => false
19 param :gateway_v6, :required => false
20 param :multi_host, :required => false
21 param :project_id, :required => false
22 param :vlan, :required => false
28 :label => params[:label]
32 optional_params.each do |key|
33 p[:network][key] = params[key] if params[key]
51 "#{ base_url }/os-networks"