mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Updated routeSet to include all possible parameters, as some were being ignored by the parser.
This commit is contained in:
parent
9717d7297b
commit
5736a77e14
2 changed files with 9 additions and 5 deletions
|
@ -9,7 +9,7 @@ module Fog
|
|||
@association = {}
|
||||
@in_association_set = false
|
||||
@in_route_set = false
|
||||
@route = {}
|
||||
@route = { 'destinationCidrBlock' => nil, 'gatewayId' => nil, 'instanceId' => nil, 'instanceOwnerId' => nil, 'networkInterfaceId' => nil, 'state' => nil, 'origin' => nil }
|
||||
@response = { 'routeTableSet' => [] }
|
||||
@tag = {}
|
||||
@route_table = { 'associationSet' => [], 'tagSet' => {}, 'routeSet' => [] }
|
||||
|
@ -50,11 +50,11 @@ module Fog
|
|||
end
|
||||
elsif @in_route_set
|
||||
case name
|
||||
when 'destinationCidrBlock', 'gatewayId', 'state'
|
||||
when 'destinationCidrBlock', 'gatewayId', 'instanceId', 'instanceOwnerId', 'networkInterfaceId', 'state', 'origin'
|
||||
@route[name] = value
|
||||
when 'item'
|
||||
@route_table['routeSet'] << @route
|
||||
@route = {}
|
||||
@route = { 'destinationCidrBlock' => nil, 'gatewayId' => nil, 'instanceId' => nil, 'instanceOwnerId' => nil, 'networkInterfaceId' => nil, 'state' => nil, 'origin' => nil }
|
||||
when 'routeSet'
|
||||
@in_route_set = false
|
||||
end
|
||||
|
|
|
@ -46,7 +46,11 @@ module Fog
|
|||
'item' => {
|
||||
"destinationCidrBlock" => vpc["cidrBlock"],
|
||||
"gatewayId" => "local",
|
||||
"state" => "pending"
|
||||
"instanceId"=>nil,
|
||||
"instanceOwnerId"=>nil,
|
||||
"networkInterfaceId"=>nil,
|
||||
"state" => "pending",
|
||||
"origin" => "CreateRouteTable"
|
||||
}
|
||||
],
|
||||
'associationSet' => [],
|
||||
|
@ -59,7 +63,7 @@ module Fog
|
|||
}
|
||||
response
|
||||
else
|
||||
raise Fog::Compute::AWS::NotFound.new("The vpc ID '#{vpc_id }' does not exist")
|
||||
raise Fog::Compute::AWS::NotFound.new("The vpc ID '#{vpc_id}' does not exist")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue