mirror of
https://github.com/fog/fog-aws.git
synced 2022-11-09 13:50:52 -05:00
Describe vpcPeeringConnectionId
This commit is contained in:
parent
0bb68dc33d
commit
e49f7054a8
3 changed files with 12 additions and 10 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, 'state' => nil, 'origin' => nil }
|
||||
@route = { 'destinationCidrBlock' => nil, 'gatewayId' => nil, 'instanceId' => nil, 'instanceOwnerId' => nil, 'networkInterfaceId' => nil, 'vpcPeeringConnectionId' => 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', 'state', 'origin'
|
||||
when 'destinationCidrBlock', 'gatewayId', 'instanceId', 'instanceOwnerId', 'networkInterfaceId', 'vpcPeeringConnectionId', 'state', 'origin'
|
||||
@route[name] = value
|
||||
when 'item'
|
||||
@route_table['routeSet'] << @route
|
||||
@route = { 'destinationCidrBlock' => nil, 'gatewayId' => nil, 'instanceId' => nil, 'instanceOwnerId' => nil, 'networkInterfaceId' => nil, 'state' => nil, 'origin' => nil }
|
||||
@route = { 'destinationCidrBlock' => nil, 'gatewayId' => nil, 'instanceId' => nil, 'instanceOwnerId' => nil, 'networkInterfaceId' => nil, 'vpcPeeringConnectionId' => nil, 'state' => nil, 'origin' => nil }
|
||||
when 'routeSet'
|
||||
@in_route_set = false
|
||||
end
|
||||
|
|
|
@ -23,6 +23,7 @@ module Fog
|
|||
# * 'instanceId'<~String> - The ID of a NAT instance in your VPC.
|
||||
# * 'instanceOwnerId'<~String> - The owner of the instance.
|
||||
# * 'networkInterfaceId'<~String> - The network interface ID.
|
||||
# * 'vpcPeeringConnectionId'<~String> - The peering connection ID.
|
||||
# * '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>:
|
||||
|
|
|
@ -25,13 +25,14 @@ Shindo.tests('Fog::Compute[:aws] | route table requests', ['aws']) do
|
|||
}],
|
||||
'tagSet' => Hash,
|
||||
'routeSet' => [{
|
||||
'destinationCidrBlock' => String,
|
||||
'gatewayId' => Fog::Nullable::String,
|
||||
'instanceId' => Fog::Nullable::String,
|
||||
'instanceOwnerId' => Fog::Nullable::String,
|
||||
'networkInterfaceId' => Fog::Nullable::String,
|
||||
'state' => String,
|
||||
'origin' => String
|
||||
'destinationCidrBlock' => String,
|
||||
'gatewayId' => Fog::Nullable::String,
|
||||
'instanceId' => Fog::Nullable::String,
|
||||
'instanceOwnerId' => Fog::Nullable::String,
|
||||
'networkInterfaceId' => Fog::Nullable::String,
|
||||
'vpcPeeringConnectionId' => Fog::Nullable::String,
|
||||
'state' => String,
|
||||
'origin' => String
|
||||
}],
|
||||
'routeTableId' => String,
|
||||
'vpcId' => String,
|
||||
|
|
Loading…
Reference in a new issue