Files
hunfabric/tests/modules/net_cloudnat/examples/subnets.yaml
Ludovico Magnocavallo a590deb58b Fix subnet configuration in cloud nat module (#2171)
* support optional secondary ranges in net-cloudnat module

* fix subnet configuration

* fix packer blueprint
2024-03-22 15:59:02 +01:00

69 lines
2.1 KiB
YAML

# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
module.nat.google_compute_router.router[0]:
bgp: []
description: null
encrypted_interconnect_router: null
name: default-nat
network: projects/xxx/global/networks/aaa
project: project-id
region: europe-west8
timeouts: null
module.nat.google_compute_router_nat.nat:
drain_nat_ips: null
enable_dynamic_port_allocation: false
enable_endpoint_independent_mapping: true
icmp_idle_timeout_sec: 30
log_config:
- enable: false
filter: ALL
max_ports_per_vm: 65536
min_ports_per_vm: 64
name: default
nat_ip_allocate_option: AUTO_ONLY
nat_ips: null
project: project-id
region: europe-west8
router: default-nat
rules: []
source_subnetwork_ip_ranges_to_nat: LIST_OF_SUBNETWORKS
subnetwork:
- name: projects/project-id/regions/europe-west8/subnetworks/net-0
secondary_ip_range_names: []
source_ip_ranges_to_nat:
- ALL_IP_RANGES
- name: projects/project-id/regions/europe-west8/subnetworks/net-1
secondary_ip_range_names: []
source_ip_ranges_to_nat:
- PRIMARY_IP_RANGE
- name: projects/project-id/regions/europe-west8/subnetworks/net-2
secondary_ip_range_names:
- pods
source_ip_ranges_to_nat:
- LIST_OF_SECONDARY_IP_RANGES
- PRIMARY_IP_RANGE
tcp_established_idle_timeout_sec: 1200
tcp_time_wait_timeout_sec: 120
tcp_transitory_idle_timeout_sec: 30
timeouts: null
udp_idle_timeout_sec: 30
counts:
google_compute_router: 1
google_compute_router_nat: 1
modules: 1
resources: 2