mirror of
https://github.com/fog/fog-aws.git
synced 2022-11-09 13:50:52 -05:00
add natGatewayId to describe_route_tables
This commit is contained in:
parent
7720bbdfa2
commit
360e9ed6db
3 changed files with 5 additions and 3 deletions
|
@ -7,7 +7,7 @@ module Fog
|
|||
@association = { 'routeTableAssociationId' => nil, 'routeTableId' => nil, 'subnetId' => nil, 'main' => false }
|
||||
@in_association_set = false
|
||||
@in_route_set = false
|
||||
@route = { 'destinationCidrBlock' => nil, 'gatewayId' => nil, 'instanceId' => nil, 'instanceOwnerId' => nil, 'networkInterfaceId' => nil, 'vpcPeeringConnectionId' => nil, 'state' => nil, 'origin' => nil }
|
||||
@route = { 'destinationCidrBlock' => nil, 'gatewayId' => nil, 'instanceId' => nil, 'instanceOwnerId' => nil, 'networkInterfaceId' => nil, 'vpcPeeringConnectionId' => nil, 'natGatewayId' => nil, 'state' => nil, 'origin' => nil }
|
||||
@response = { 'routeTableSet' => [] }
|
||||
@tag = {}
|
||||
@route_table = { 'associationSet' => [], 'tagSet' => {}, 'routeSet' => [] }
|
||||
|
@ -54,11 +54,11 @@ module Fog
|
|||
end
|
||||
elsif @in_route_set
|
||||
case name
|
||||
when 'destinationCidrBlock', 'gatewayId', 'instanceId', 'instanceOwnerId', 'networkInterfaceId', 'vpcPeeringConnectionId', 'state', 'origin'
|
||||
when 'destinationCidrBlock', 'gatewayId', 'instanceId', 'instanceOwnerId', 'networkInterfaceId', 'vpcPeeringConnectionId', 'natGatewayId', 'state', 'origin'
|
||||
@route[name] = value
|
||||
when 'item'
|
||||
@route_table['routeSet'] << @route
|
||||
@route = { 'destinationCidrBlock' => nil, 'gatewayId' => nil, 'instanceId' => nil, 'instanceOwnerId' => nil, 'networkInterfaceId' => nil, 'vpcPeeringConnectionId' => nil, 'state' => nil, 'origin' => nil }
|
||||
@route = { 'destinationCidrBlock' => nil, 'gatewayId' => nil, 'instanceId' => nil, 'instanceOwnerId' => nil, 'networkInterfaceId' => nil, 'vpcPeeringConnectionId' => nil, 'natGatewayId' => nil, 'state' => nil, 'origin' => nil }
|
||||
when 'routeSet'
|
||||
@in_route_set = false
|
||||
end
|
||||
|
|
|
@ -24,6 +24,7 @@ module Fog
|
|||
# * 'instanceOwnerId'<~String> - The owner of the instance.
|
||||
# * 'networkInterfaceId'<~String> - The network interface ID.
|
||||
# * 'vpcPeeringConnectionId'<~String> - The peering connection ID.
|
||||
# * 'natGatewayId'<~String> - The ID of a NAT gateway attached to your VPC.
|
||||
# * 'state'<~String> - The state of the route. The blackhole state indicates that the route's target isn't available.
|
||||
# * 'origin'<~String> - Describes how the route was created.
|
||||
# * 'associationSet'<~Array>:
|
||||
|
|
|
@ -31,6 +31,7 @@ Shindo.tests('Fog::Compute[:aws] | route table requests', ['aws']) do
|
|||
'instanceOwnerId' => Fog::Nullable::String,
|
||||
'networkInterfaceId' => Fog::Nullable::String,
|
||||
'vpcPeeringConnectionId' => Fog::Nullable::String,
|
||||
'natGatewayId' => Fog::Nullable::String,
|
||||
'state' => String,
|
||||
'origin' => String
|
||||
}],
|
||||
|
|
Loading…
Reference in a new issue