# Copyright 2026 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.

# yaml-language-server: $schema=../../../../../schemas/vpn.schema.json

name: to-onprem
region: $locations:primary
peer_gateways:
  default:
    external:
      redundancy_type: SINGLE_IP_INTERNALLY_REDUNDANT
      interfaces:
        - 8.8.8.8
router_config:
  create: false
  name: $routers:hub/hybrid-connectivity-router
ncc_spoke_config:
  hub: $ncc_hubs:hub
tunnels:
  remote-0:
    bgp_peer:
      address: 169.254.128.1
      asn: 64513
    bgp_session_range: "169.254.128.2/30"
    peer_external_gateway_interface: 0
    shared_secret: "mySecret"
    vpn_gateway_interface: 0
  remote-1:
    bgp_peer:
      address: 169.254.128.5
      asn: 64513
    bgp_session_range: "169.254.128.6/30"
    peer_external_gateway_interface: 0
    shared_secret: "mySecret"
    vpn_gateway_interface: 1
