|
| 1 | +--- |
| 2 | +# generated by https://github.com/hashicorp/terraform-plugin-docs |
| 3 | +page_title: "iosxe_bgp_peer_session_template Resource - terraform-provider-iosxe" |
| 4 | +subcategory: "BGP" |
| 5 | +description: |- |
| 6 | + This resource can manage the BGP Peer Session Template configuration. |
| 7 | +--- |
| 8 | + |
| 9 | +# iosxe_bgp_peer_session_template (Resource) |
| 10 | + |
| 11 | +This resource can manage the BGP Peer Session Template configuration. |
| 12 | + |
| 13 | +## Example Usage |
| 14 | + |
| 15 | +```terraform |
| 16 | +resource "iosxe_bgp_peer_session_template" "example" { |
| 17 | + asn = "65000" |
| 18 | + template_name = "PEER_SESSION_TEMPLATE_1" |
| 19 | + remote_as = "65001" |
| 20 | + description = "Peer Session Template Description" |
| 21 | + disable_connected_check = true |
| 22 | + ebgp_multihop = true |
| 23 | + ebgp_multihop_max_hop = 10 |
| 24 | + update_source_interface_loopback = 100 |
| 25 | +} |
| 26 | +``` |
| 27 | + |
| 28 | +<!-- schema generated by tfplugindocs --> |
| 29 | +## Schema |
| 30 | + |
| 31 | +### Required |
| 32 | + |
| 33 | +- `asn` (String) |
| 34 | +- `template_name` (String) |
| 35 | + |
| 36 | +### Optional |
| 37 | + |
| 38 | +- `delete_mode` (String) Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is. Default value is `all`. |
| 39 | + - Choices: `all`, `attributes` |
| 40 | +- `description` (String) Neighbor specific description |
| 41 | +- `device` (String) A device name from the provider configuration. |
| 42 | +- `disable_connected_check` (Boolean) one-hop away EBGP peer using loopback address |
| 43 | +- `ebgp_multihop` (Boolean) Allow EBGP neighbors not on directly connected networks. For single-hop ebgp peers, delete ebgp-multihop directly. |
| 44 | +- `ebgp_multihop_max_hop` (Number) - Range: `2`-`255` |
| 45 | +- `inherit_peer_session` (String) Inherit a peer-session template |
| 46 | +- `remote_as` (String) Specify a BGP neighbor remote-as |
| 47 | +- `update_source_interface_loopback` (Number) Loopback interface |
| 48 | + |
| 49 | +### Read-Only |
| 50 | + |
| 51 | +- `id` (String) The path of the object. |
| 52 | + |
| 53 | +## Import |
| 54 | + |
| 55 | +Import is supported using the following syntax: |
| 56 | + |
| 57 | +The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example: |
| 58 | + |
| 59 | +```shell |
| 60 | +terraform import iosxe_bgp_peer_session_template.example "<asn>,<template_name>" |
| 61 | +``` |
0 commit comments