mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Fix Params related to network configuration
This commit is contained in:
parent
2786183a53
commit
e8bcf413e1
1 changed files with 9 additions and 4 deletions
|
@ -10,7 +10,7 @@ module Fog
|
||||||
unless valid_opts.all? { |opt| options.has_key?(opt) }
|
unless valid_opts.all? { |opt| options.has_key?(opt) }
|
||||||
raise ArgumentError.new("Required data missing: #{(valid_opts - options.keys).map(&:inspect).join(", ")}")
|
raise ArgumentError.new("Required data missing: #{(valid_opts - options.keys).map(&:inspect).join(", ")}")
|
||||||
end
|
end
|
||||||
|
|
||||||
catalog_item_uri = options[:catalog_item_uri]
|
catalog_item_uri = options[:catalog_item_uri]
|
||||||
|
|
||||||
# Figure out the template_uri
|
# Figure out the template_uri
|
||||||
|
@ -49,8 +49,13 @@ module Fog
|
||||||
if options[:network_uri]
|
if options[:network_uri]
|
||||||
# TODO - implement properly
|
# TODO - implement properly
|
||||||
xml.NetworkConfigSection {
|
xml.NetworkConfigSection {
|
||||||
xml.NetworkConfig {
|
xml.tag!("ovf:Info"){ "Configuration parameters for logical networks" }
|
||||||
xml.NetworkAssociation( :href => options[:network_uri] )
|
xml.NetworkConfig("networkName" => options[:network_name]) {
|
||||||
|
# xml.NetworkAssociation( :href => options[:network_uri] )
|
||||||
|
xml.Configuration {
|
||||||
|
xml.ParentNetwork("name" => options[:network_name], "href" => options[:network_uri])
|
||||||
|
xml.FenceMode("bridged")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
@ -67,7 +72,7 @@ module Fog
|
||||||
|
|
||||||
def instantiate_vapp_template options = {}
|
def instantiate_vapp_template options = {}
|
||||||
validate_instantiate_vapp_template_options options
|
validate_instantiate_vapp_template_options options
|
||||||
|
puts "XML Request: #{generate_instantiate_vapp_template_request(options)}"
|
||||||
request(
|
request(
|
||||||
:body => generate_instantiate_vapp_template_request(options),
|
:body => generate_instantiate_vapp_template_request(options),
|
||||||
:expects => 201,
|
:expects => 201,
|
||||||
|
|
Loading…
Reference in a new issue