diff --git a/lib/fog/aws/parsers/compute/describe_route_tables.rb b/lib/fog/aws/parsers/compute/describe_route_tables.rb index f920b6244..506903ded 100644 --- a/lib/fog/aws/parsers/compute/describe_route_tables.rb +++ b/lib/fog/aws/parsers/compute/describe_route_tables.rb @@ -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 diff --git a/lib/fog/aws/requests/compute/describe_route_tables.rb b/lib/fog/aws/requests/compute/describe_route_tables.rb index addd6044c..372873975 100644 --- a/lib/fog/aws/requests/compute/describe_route_tables.rb +++ b/lib/fog/aws/requests/compute/describe_route_tables.rb @@ -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>: diff --git a/tests/requests/compute/route_tests.rb b/tests/requests/compute/route_tests.rb index de6022f65..f87a33825 100644 --- a/tests/requests/compute/route_tests.rb +++ b/tests/requests/compute/route_tests.rb @@ -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 }],