This data source provides the list of Ipsec Connection Tunnel Routes in Oracle Cloud Infrastructure Core service.
The routes advertised to the on-premises network and the routes received from the on-premises network.
data "oci_core_ipsec_connection_tunnel_routes" "test_ipsec_connection_tunnel_routes" {
#Required
ipsec_id = oci_core_ipsec.test_ipsec.id
tunnel_id = oci_core_tunnel.test_tunnel.id
#Optional
advertiser = var.ipsec_connection_tunnel_route_advertiser
}
The following arguments are supported:
advertiser
- (Optional) Specifies the advertiser of the routes. If set to ORACLE
, this returns only the routes advertised by Oracle. When set to CUSTOMER
, this returns only the routes advertised by the CPE. ipsec_id
- (Required) The OCID of the IPSec connection.tunnel_id
- (Required) The OCID of the tunnel.The following attributes are exported:
tunnel_routes
- The list of tunnel_routes.The following attributes are exported:
advertiser
- The source of the route advertisement.age
- The age of the route.as_path
- A list of ASNs in AS_Path.is_best_path
- Indicates this is the best route.prefix
- The BGP network layer reachability information.