Add nat_gateway_id to route and describe_route_tables
This commit is contained in:
parent
502957f1f9
commit
43070a03ba
3 changed files with 53 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ class RouteTables(BaseResponse):
|
|||
destination_cidr_block = self._get_param("DestinationCidrBlock")
|
||||
gateway_id = self._get_param("GatewayId")
|
||||
instance_id = self._get_param("InstanceId")
|
||||
nat_gateway_id = self._get_param("NatGatewayId")
|
||||
interface_id = self._get_param("NetworkInterfaceId")
|
||||
pcx_id = self._get_param("VpcPeeringConnectionId")
|
||||
|
||||
|
|
@ -26,6 +27,7 @@ class RouteTables(BaseResponse):
|
|||
destination_cidr_block,
|
||||
gateway_id=gateway_id,
|
||||
instance_id=instance_id,
|
||||
nat_gateway_id=nat_gateway_id,
|
||||
interface_id=interface_id,
|
||||
vpc_peering_connection_id=pcx_id,
|
||||
)
|
||||
|
|
@ -173,6 +175,10 @@ DESCRIBE_ROUTE_TABLES_RESPONSE = """
|
|||
<origin>CreateRoute</origin>
|
||||
<state>blackhole</state>
|
||||
{% endif %}
|
||||
{% if route.nat_gateway %}
|
||||
<natGatewayId>{{ route.nat_gateway.id }}</natGatewayId>
|
||||
<state>active</state>
|
||||
{% endif %}
|
||||
</item>
|
||||
{% endfor %}
|
||||
</routeSet>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue