iosxe.BgpNeighbor
Explore with Pulumi AI
This resource can manage the BGP Neighbor configuration.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Iosxe = Lbrlabs.PulumiPackage.Iosxe;
return await Deployment.RunAsync(() =>
{
var example = new Iosxe.BgpNeighbor("example", new()
{
Asn = "65000",
ClusterId = "1234",
Description = "BGP Neighbor Description",
DisableConnectedCheck = false,
FallOverBfdCheckControlPlaneFailure = true,
FallOverBfdSingleHop = true,
FallOverBfdStrictMode = true,
FallOverDefaultEnable = false,
FallOverDefaultRouteMap = "RMAP",
FallOverMaximumMetricRouteMap = "RMAP",
Ip = "3.3.3.3",
LogNeighborChanges = true,
Password = "test1234",
PasswordType = 1,
RemoteAs = "65000",
Shutdown = false,
TimersHoldtime = 866,
TimersKeepaliveInterval = 655,
TimersMinimumNeighborHold = 222,
UpdateSourceLoopback = "100",
Version = 4,
});
});
package main
import (
"github.com/lbrlabs/pulumi-iosxe/sdk/go/iosxe"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := iosxe.NewBgpNeighbor(ctx, "example", &iosxe.BgpNeighborArgs{
Asn: pulumi.String("65000"),
ClusterId: pulumi.String("1234"),
Description: pulumi.String("BGP Neighbor Description"),
DisableConnectedCheck: pulumi.Bool(false),
FallOverBfdCheckControlPlaneFailure: pulumi.Bool(true),
FallOverBfdSingleHop: pulumi.Bool(true),
FallOverBfdStrictMode: pulumi.Bool(true),
FallOverDefaultEnable: pulumi.Bool(false),
FallOverDefaultRouteMap: pulumi.String("RMAP"),
FallOverMaximumMetricRouteMap: pulumi.String("RMAP"),
Ip: pulumi.String("3.3.3.3"),
LogNeighborChanges: pulumi.Bool(true),
Password: pulumi.String("test1234"),
PasswordType: pulumi.Int(1),
RemoteAs: pulumi.String("65000"),
Shutdown: pulumi.Bool(false),
TimersHoldtime: pulumi.Int(866),
TimersKeepaliveInterval: pulumi.Int(655),
TimersMinimumNeighborHold: pulumi.Int(222),
UpdateSourceLoopback: pulumi.String("100"),
Version: pulumi.Int(4),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.iosxe.BgpNeighbor;
import com.pulumi.iosxe.BgpNeighborArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new BgpNeighbor("example", BgpNeighborArgs.builder()
.asn("65000")
.clusterId("1234")
.description("BGP Neighbor Description")
.disableConnectedCheck(false)
.fallOverBfdCheckControlPlaneFailure(true)
.fallOverBfdSingleHop(true)
.fallOverBfdStrictMode(true)
.fallOverDefaultEnable(false)
.fallOverDefaultRouteMap("RMAP")
.fallOverMaximumMetricRouteMap("RMAP")
.ip("3.3.3.3")
.logNeighborChanges(true)
.password("test1234")
.passwordType(1)
.remoteAs("65000")
.shutdown(false)
.timersHoldtime(866)
.timersKeepaliveInterval(655)
.timersMinimumNeighborHold(222)
.updateSourceLoopback("100")
.version(4)
.build());
}
}
import pulumi
import lbrlabs_pulumi_iosxe as iosxe
example = iosxe.BgpNeighbor("example",
asn="65000",
cluster_id="1234",
description="BGP Neighbor Description",
disable_connected_check=False,
fall_over_bfd_check_control_plane_failure=True,
fall_over_bfd_single_hop=True,
fall_over_bfd_strict_mode=True,
fall_over_default_enable=False,
fall_over_default_route_map="RMAP",
fall_over_maximum_metric_route_map="RMAP",
ip="3.3.3.3",
log_neighbor_changes=True,
password="test1234",
password_type=1,
remote_as="65000",
shutdown=False,
timers_holdtime=866,
timers_keepalive_interval=655,
timers_minimum_neighbor_hold=222,
update_source_loopback="100",
version=4)
import * as pulumi from "@pulumi/pulumi";
import * as iosxe from "@lbrlabs/pulumi-iosxe";
const example = new iosxe.BgpNeighbor("example", {
asn: "65000",
clusterId: "1234",
description: "BGP Neighbor Description",
disableConnectedCheck: false,
fallOverBfdCheckControlPlaneFailure: true,
fallOverBfdSingleHop: true,
fallOverBfdStrictMode: true,
fallOverDefaultEnable: false,
fallOverDefaultRouteMap: "RMAP",
fallOverMaximumMetricRouteMap: "RMAP",
ip: "3.3.3.3",
logNeighborChanges: true,
password: "test1234",
passwordType: 1,
remoteAs: "65000",
shutdown: false,
timersHoldtime: 866,
timersKeepaliveInterval: 655,
timersMinimumNeighborHold: 222,
updateSourceLoopback: "100",
version: 4,
});
resources:
example:
type: iosxe:BgpNeighbor
properties:
asn: '65000'
clusterId: '1234'
description: BGP Neighbor Description
disableConnectedCheck: false
fallOverBfdCheckControlPlaneFailure: true
fallOverBfdSingleHop: true
fallOverBfdStrictMode: true
fallOverDefaultEnable: false
fallOverDefaultRouteMap: RMAP
fallOverMaximumMetricRouteMap: RMAP
ip: 3.3.3.3
logNeighborChanges: true
password: test1234
passwordType: 1
remoteAs: '65000'
shutdown: false
timersHoldtime: 866
timersKeepaliveInterval: 655
timersMinimumNeighborHold: 222
updateSourceLoopback: '100'
version: 4
Create BgpNeighbor Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BgpNeighbor(name: string, args: BgpNeighborArgs, opts?: CustomResourceOptions);
@overload
def BgpNeighbor(resource_name: str,
args: BgpNeighborArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BgpNeighbor(resource_name: str,
opts: Optional[ResourceOptions] = None,
asn: Optional[str] = None,
ip: Optional[str] = None,
fall_over_maximum_metric_route_map: Optional[str] = None,
ebgp_multihop: Optional[bool] = None,
local_as: Optional[str] = None,
disable_connected_check: Optional[bool] = None,
local_as_dual_as: Optional[bool] = None,
ebgp_multihop_max_hop: Optional[int] = None,
fall_over_bfd_check_control_plane_failure: Optional[bool] = None,
fall_over_bfd_multi_hop: Optional[bool] = None,
fall_over_bfd_single_hop: Optional[bool] = None,
fall_over_bfd_strict_mode: Optional[bool] = None,
fall_over_default_enable: Optional[bool] = None,
local_as_no_prepend: Optional[bool] = None,
delete_mode: Optional[str] = None,
cluster_id: Optional[str] = None,
device: Optional[str] = None,
description: Optional[str] = None,
fall_over_default_route_map: Optional[str] = None,
local_as_replace_as: Optional[bool] = None,
log_neighbor_changes: Optional[bool] = None,
password: Optional[str] = None,
password_type: Optional[int] = None,
remote_as: Optional[str] = None,
shutdown: Optional[bool] = None,
timers_holdtime: Optional[int] = None,
timers_keepalive_interval: Optional[int] = None,
timers_minimum_neighbor_hold: Optional[int] = None,
ttl_security_hops: Optional[int] = None,
update_source_loopback: Optional[str] = None,
version: Optional[int] = None)
func NewBgpNeighbor(ctx *Context, name string, args BgpNeighborArgs, opts ...ResourceOption) (*BgpNeighbor, error)
public BgpNeighbor(string name, BgpNeighborArgs args, CustomResourceOptions? opts = null)
public BgpNeighbor(String name, BgpNeighborArgs args)
public BgpNeighbor(String name, BgpNeighborArgs args, CustomResourceOptions options)
type: iosxe:BgpNeighbor
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args BgpNeighborArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args BgpNeighborArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args BgpNeighborArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BgpNeighborArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BgpNeighborArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var bgpNeighborResource = new Iosxe.BgpNeighbor("bgpNeighborResource", new()
{
Asn = "string",
Ip = "string",
FallOverMaximumMetricRouteMap = "string",
EbgpMultihop = false,
LocalAs = "string",
DisableConnectedCheck = false,
LocalAsDualAs = false,
EbgpMultihopMaxHop = 0,
FallOverBfdCheckControlPlaneFailure = false,
FallOverBfdMultiHop = false,
FallOverBfdSingleHop = false,
FallOverBfdStrictMode = false,
FallOverDefaultEnable = false,
LocalAsNoPrepend = false,
DeleteMode = "string",
ClusterId = "string",
Device = "string",
Description = "string",
FallOverDefaultRouteMap = "string",
LocalAsReplaceAs = false,
LogNeighborChanges = false,
Password = "string",
PasswordType = 0,
RemoteAs = "string",
Shutdown = false,
TimersHoldtime = 0,
TimersKeepaliveInterval = 0,
TimersMinimumNeighborHold = 0,
TtlSecurityHops = 0,
UpdateSourceLoopback = "string",
Version = 0,
});
example, err := iosxe.NewBgpNeighbor(ctx, "bgpNeighborResource", &iosxe.BgpNeighborArgs{
Asn: pulumi.String("string"),
Ip: pulumi.String("string"),
FallOverMaximumMetricRouteMap: pulumi.String("string"),
EbgpMultihop: pulumi.Bool(false),
LocalAs: pulumi.String("string"),
DisableConnectedCheck: pulumi.Bool(false),
LocalAsDualAs: pulumi.Bool(false),
EbgpMultihopMaxHop: pulumi.Int(0),
FallOverBfdCheckControlPlaneFailure: pulumi.Bool(false),
FallOverBfdMultiHop: pulumi.Bool(false),
FallOverBfdSingleHop: pulumi.Bool(false),
FallOverBfdStrictMode: pulumi.Bool(false),
FallOverDefaultEnable: pulumi.Bool(false),
LocalAsNoPrepend: pulumi.Bool(false),
DeleteMode: pulumi.String("string"),
ClusterId: pulumi.String("string"),
Device: pulumi.String("string"),
Description: pulumi.String("string"),
FallOverDefaultRouteMap: pulumi.String("string"),
LocalAsReplaceAs: pulumi.Bool(false),
LogNeighborChanges: pulumi.Bool(false),
Password: pulumi.String("string"),
PasswordType: pulumi.Int(0),
RemoteAs: pulumi.String("string"),
Shutdown: pulumi.Bool(false),
TimersHoldtime: pulumi.Int(0),
TimersKeepaliveInterval: pulumi.Int(0),
TimersMinimumNeighborHold: pulumi.Int(0),
TtlSecurityHops: pulumi.Int(0),
UpdateSourceLoopback: pulumi.String("string"),
Version: pulumi.Int(0),
})
var bgpNeighborResource = new BgpNeighbor("bgpNeighborResource", BgpNeighborArgs.builder()
.asn("string")
.ip("string")
.fallOverMaximumMetricRouteMap("string")
.ebgpMultihop(false)
.localAs("string")
.disableConnectedCheck(false)
.localAsDualAs(false)
.ebgpMultihopMaxHop(0)
.fallOverBfdCheckControlPlaneFailure(false)
.fallOverBfdMultiHop(false)
.fallOverBfdSingleHop(false)
.fallOverBfdStrictMode(false)
.fallOverDefaultEnable(false)
.localAsNoPrepend(false)
.deleteMode("string")
.clusterId("string")
.device("string")
.description("string")
.fallOverDefaultRouteMap("string")
.localAsReplaceAs(false)
.logNeighborChanges(false)
.password("string")
.passwordType(0)
.remoteAs("string")
.shutdown(false)
.timersHoldtime(0)
.timersKeepaliveInterval(0)
.timersMinimumNeighborHold(0)
.ttlSecurityHops(0)
.updateSourceLoopback("string")
.version(0)
.build());
bgp_neighbor_resource = iosxe.BgpNeighbor("bgpNeighborResource",
asn="string",
ip="string",
fall_over_maximum_metric_route_map="string",
ebgp_multihop=False,
local_as="string",
disable_connected_check=False,
local_as_dual_as=False,
ebgp_multihop_max_hop=0,
fall_over_bfd_check_control_plane_failure=False,
fall_over_bfd_multi_hop=False,
fall_over_bfd_single_hop=False,
fall_over_bfd_strict_mode=False,
fall_over_default_enable=False,
local_as_no_prepend=False,
delete_mode="string",
cluster_id="string",
device="string",
description="string",
fall_over_default_route_map="string",
local_as_replace_as=False,
log_neighbor_changes=False,
password="string",
password_type=0,
remote_as="string",
shutdown=False,
timers_holdtime=0,
timers_keepalive_interval=0,
timers_minimum_neighbor_hold=0,
ttl_security_hops=0,
update_source_loopback="string",
version=0)
const bgpNeighborResource = new iosxe.BgpNeighbor("bgpNeighborResource", {
asn: "string",
ip: "string",
fallOverMaximumMetricRouteMap: "string",
ebgpMultihop: false,
localAs: "string",
disableConnectedCheck: false,
localAsDualAs: false,
ebgpMultihopMaxHop: 0,
fallOverBfdCheckControlPlaneFailure: false,
fallOverBfdMultiHop: false,
fallOverBfdSingleHop: false,
fallOverBfdStrictMode: false,
fallOverDefaultEnable: false,
localAsNoPrepend: false,
deleteMode: "string",
clusterId: "string",
device: "string",
description: "string",
fallOverDefaultRouteMap: "string",
localAsReplaceAs: false,
logNeighborChanges: false,
password: "string",
passwordType: 0,
remoteAs: "string",
shutdown: false,
timersHoldtime: 0,
timersKeepaliveInterval: 0,
timersMinimumNeighborHold: 0,
ttlSecurityHops: 0,
updateSourceLoopback: "string",
version: 0,
});
type: iosxe:BgpNeighbor
properties:
asn: string
clusterId: string
deleteMode: string
description: string
device: string
disableConnectedCheck: false
ebgpMultihop: false
ebgpMultihopMaxHop: 0
fallOverBfdCheckControlPlaneFailure: false
fallOverBfdMultiHop: false
fallOverBfdSingleHop: false
fallOverBfdStrictMode: false
fallOverDefaultEnable: false
fallOverDefaultRouteMap: string
fallOverMaximumMetricRouteMap: string
ip: string
localAs: string
localAsDualAs: false
localAsNoPrepend: false
localAsReplaceAs: false
logNeighborChanges: false
password: string
passwordType: 0
remoteAs: string
shutdown: false
timersHoldtime: 0
timersKeepaliveInterval: 0
timersMinimumNeighborHold: 0
ttlSecurityHops: 0
updateSourceLoopback: string
version: 0
BgpNeighbor Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The BgpNeighbor resource accepts the following input properties:
- Asn string
- Ip string
- Cluster
Id string - 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
. - Choices:all
,attributes
- Description string
- Neighbor specific description
- Device string
- A device name from the provider configuration.
- Disable
Connected boolCheck - one-hop away EBGP peer using loopback address
- Ebgp
Multihop bool - Allow EBGP neighbors not on directly connected networks. For single-hop ebgp peers, delete ebgp-multihop directly.
- Ebgp
Multihop intMax Hop - Range:
2
-255
- Range:
- Fall
Over boolBfd Check Control Plane Failure - Retrieve control plane dependent failure info from BFD for BGP GR/NSR operation
- Fall
Over boolBfd Multi Hop - Force BFD multi-hop to detect failure
- Fall
Over boolBfd Single Hop - Force BFD single-hop to detect failure
- Fall
Over boolBfd Strict Mode - Enable BFD strict-mode
- Fall
Over boolDefault Enable - Fall
Over stringDefault Route Map - Fall
Over stringMaximum Metric Route Map - Local
As string - Local
As boolDual As - Accept either real AS or local AS from the ebgp peer
- Local
As boolNo Prepend - Do not prepend local-as to updates from ebgp peers
- Local
As boolReplace As - Replace real AS with local AS in the EBGP updates
- Log
Neighbor boolChanges - Log neighbor up/down and reset reason
- Password string
- Password
Type int - Encryption type (0 to disable encryption, 7 for proprietary) - Range:
0
-7
- Remote
As string - Specify a BGP peer-group remote-as
- Shutdown bool
- Administratively shut down this neighbor
- Timers
Holdtime int - Range:
0
-65535
- Range:
- Timers
Keepalive intInterval - Range:
0
-65535
- Range:
- Timers
Minimum intNeighbor Hold - Range:
0
-65535
- Range:
- Ttl
Security intHops - IP hops - Range:
1
-254
- Update
Source stringLoopback - Loopback interface
- Version int
- Set the BGP version to match a neighbor - Range:
4
-4
- Asn string
- Ip string
- Cluster
Id string - 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
. - Choices:all
,attributes
- Description string
- Neighbor specific description
- Device string
- A device name from the provider configuration.
- Disable
Connected boolCheck - one-hop away EBGP peer using loopback address
- Ebgp
Multihop bool - Allow EBGP neighbors not on directly connected networks. For single-hop ebgp peers, delete ebgp-multihop directly.
- Ebgp
Multihop intMax Hop - Range:
2
-255
- Range:
- Fall
Over boolBfd Check Control Plane Failure - Retrieve control plane dependent failure info from BFD for BGP GR/NSR operation
- Fall
Over boolBfd Multi Hop - Force BFD multi-hop to detect failure
- Fall
Over boolBfd Single Hop - Force BFD single-hop to detect failure
- Fall
Over boolBfd Strict Mode - Enable BFD strict-mode
- Fall
Over boolDefault Enable - Fall
Over stringDefault Route Map - Fall
Over stringMaximum Metric Route Map - Local
As string - Local
As boolDual As - Accept either real AS or local AS from the ebgp peer
- Local
As boolNo Prepend - Do not prepend local-as to updates from ebgp peers
- Local
As boolReplace As - Replace real AS with local AS in the EBGP updates
- Log
Neighbor boolChanges - Log neighbor up/down and reset reason
- Password string
- Password
Type int - Encryption type (0 to disable encryption, 7 for proprietary) - Range:
0
-7
- Remote
As string - Specify a BGP peer-group remote-as
- Shutdown bool
- Administratively shut down this neighbor
- Timers
Holdtime int - Range:
0
-65535
- Range:
- Timers
Keepalive intInterval - Range:
0
-65535
- Range:
- Timers
Minimum intNeighbor Hold - Range:
0
-65535
- Range:
- Ttl
Security intHops - IP hops - Range:
1
-254
- Update
Source stringLoopback - Loopback interface
- Version int
- Set the BGP version to match a neighbor - Range:
4
-4
- asn String
- ip String
- cluster
Id String - 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
. - Choices:all
,attributes
- description String
- Neighbor specific description
- device String
- A device name from the provider configuration.
- disable
Connected BooleanCheck - one-hop away EBGP peer using loopback address
- ebgp
Multihop Boolean - Allow EBGP neighbors not on directly connected networks. For single-hop ebgp peers, delete ebgp-multihop directly.
- ebgp
Multihop IntegerMax Hop - Range:
2
-255
- Range:
- fall
Over BooleanBfd Check Control Plane Failure - Retrieve control plane dependent failure info from BFD for BGP GR/NSR operation
- fall
Over BooleanBfd Multi Hop - Force BFD multi-hop to detect failure
- fall
Over BooleanBfd Single Hop - Force BFD single-hop to detect failure
- fall
Over BooleanBfd Strict Mode - Enable BFD strict-mode
- fall
Over BooleanDefault Enable - fall
Over StringDefault Route Map - fall
Over StringMaximum Metric Route Map - local
As String - local
As BooleanDual As - Accept either real AS or local AS from the ebgp peer
- local
As BooleanNo Prepend - Do not prepend local-as to updates from ebgp peers
- local
As BooleanReplace As - Replace real AS with local AS in the EBGP updates
- log
Neighbor BooleanChanges - Log neighbor up/down and reset reason
- password String
- password
Type Integer - Encryption type (0 to disable encryption, 7 for proprietary) - Range:
0
-7
- remote
As String - Specify a BGP peer-group remote-as
- shutdown Boolean
- Administratively shut down this neighbor
- timers
Holdtime Integer - Range:
0
-65535
- Range:
- timers
Keepalive IntegerInterval - Range:
0
-65535
- Range:
- timers
Minimum IntegerNeighbor Hold - Range:
0
-65535
- Range:
- ttl
Security IntegerHops - IP hops - Range:
1
-254
- update
Source StringLoopback - Loopback interface
- version Integer
- Set the BGP version to match a neighbor - Range:
4
-4
- asn string
- ip string
- cluster
Id string - 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
. - Choices:all
,attributes
- description string
- Neighbor specific description
- device string
- A device name from the provider configuration.
- disable
Connected booleanCheck - one-hop away EBGP peer using loopback address
- ebgp
Multihop boolean - Allow EBGP neighbors not on directly connected networks. For single-hop ebgp peers, delete ebgp-multihop directly.
- ebgp
Multihop numberMax Hop - Range:
2
-255
- Range:
- fall
Over booleanBfd Check Control Plane Failure - Retrieve control plane dependent failure info from BFD for BGP GR/NSR operation
- fall
Over booleanBfd Multi Hop - Force BFD multi-hop to detect failure
- fall
Over booleanBfd Single Hop - Force BFD single-hop to detect failure
- fall
Over booleanBfd Strict Mode - Enable BFD strict-mode
- fall
Over booleanDefault Enable - fall
Over stringDefault Route Map - fall
Over stringMaximum Metric Route Map - local
As string - local
As booleanDual As - Accept either real AS or local AS from the ebgp peer
- local
As booleanNo Prepend - Do not prepend local-as to updates from ebgp peers
- local
As booleanReplace As - Replace real AS with local AS in the EBGP updates
- log
Neighbor booleanChanges - Log neighbor up/down and reset reason
- password string
- password
Type number - Encryption type (0 to disable encryption, 7 for proprietary) - Range:
0
-7
- remote
As string - Specify a BGP peer-group remote-as
- shutdown boolean
- Administratively shut down this neighbor
- timers
Holdtime number - Range:
0
-65535
- Range:
- timers
Keepalive numberInterval - Range:
0
-65535
- Range:
- timers
Minimum numberNeighbor Hold - Range:
0
-65535
- Range:
- ttl
Security numberHops - IP hops - Range:
1
-254
- update
Source stringLoopback - Loopback interface
- version number
- Set the BGP version to match a neighbor - Range:
4
-4
- asn str
- ip str
- cluster_
id str - delete_
mode str - 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
. - Choices:all
,attributes
- description str
- Neighbor specific description
- device str
- A device name from the provider configuration.
- disable_
connected_ boolcheck - one-hop away EBGP peer using loopback address
- ebgp_
multihop bool - Allow EBGP neighbors not on directly connected networks. For single-hop ebgp peers, delete ebgp-multihop directly.
- ebgp_
multihop_ intmax_ hop - Range:
2
-255
- Range:
- fall_
over_ boolbfd_ check_ control_ plane_ failure - Retrieve control plane dependent failure info from BFD for BGP GR/NSR operation
- fall_
over_ boolbfd_ multi_ hop - Force BFD multi-hop to detect failure
- fall_
over_ boolbfd_ single_ hop - Force BFD single-hop to detect failure
- fall_
over_ boolbfd_ strict_ mode - Enable BFD strict-mode
- fall_
over_ booldefault_ enable - fall_
over_ strdefault_ route_ map - fall_
over_ strmaximum_ metric_ route_ map - local_
as str - local_
as_ booldual_ as - Accept either real AS or local AS from the ebgp peer
- local_
as_ boolno_ prepend - Do not prepend local-as to updates from ebgp peers
- local_
as_ boolreplace_ as - Replace real AS with local AS in the EBGP updates
- log_
neighbor_ boolchanges - Log neighbor up/down and reset reason
- password str
- password_
type int - Encryption type (0 to disable encryption, 7 for proprietary) - Range:
0
-7
- remote_
as str - Specify a BGP peer-group remote-as
- shutdown bool
- Administratively shut down this neighbor
- timers_
holdtime int - Range:
0
-65535
- Range:
- timers_
keepalive_ intinterval - Range:
0
-65535
- Range:
- timers_
minimum_ intneighbor_ hold - Range:
0
-65535
- Range:
- ttl_
security_ inthops - IP hops - Range:
1
-254
- update_
source_ strloopback - Loopback interface
- version int
- Set the BGP version to match a neighbor - Range:
4
-4
- asn String
- ip String
- cluster
Id String - 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
. - Choices:all
,attributes
- description String
- Neighbor specific description
- device String
- A device name from the provider configuration.
- disable
Connected BooleanCheck - one-hop away EBGP peer using loopback address
- ebgp
Multihop Boolean - Allow EBGP neighbors not on directly connected networks. For single-hop ebgp peers, delete ebgp-multihop directly.
- ebgp
Multihop NumberMax Hop - Range:
2
-255
- Range:
- fall
Over BooleanBfd Check Control Plane Failure - Retrieve control plane dependent failure info from BFD for BGP GR/NSR operation
- fall
Over BooleanBfd Multi Hop - Force BFD multi-hop to detect failure
- fall
Over BooleanBfd Single Hop - Force BFD single-hop to detect failure
- fall
Over BooleanBfd Strict Mode - Enable BFD strict-mode
- fall
Over BooleanDefault Enable - fall
Over StringDefault Route Map - fall
Over StringMaximum Metric Route Map - local
As String - local
As BooleanDual As - Accept either real AS or local AS from the ebgp peer
- local
As BooleanNo Prepend - Do not prepend local-as to updates from ebgp peers
- local
As BooleanReplace As - Replace real AS with local AS in the EBGP updates
- log
Neighbor BooleanChanges - Log neighbor up/down and reset reason
- password String
- password
Type Number - Encryption type (0 to disable encryption, 7 for proprietary) - Range:
0
-7
- remote
As String - Specify a BGP peer-group remote-as
- shutdown Boolean
- Administratively shut down this neighbor
- timers
Holdtime Number - Range:
0
-65535
- Range:
- timers
Keepalive NumberInterval - Range:
0
-65535
- Range:
- timers
Minimum NumberNeighbor Hold - Range:
0
-65535
- Range:
- ttl
Security NumberHops - IP hops - Range:
1
-254
- update
Source StringLoopback - Loopback interface
- version Number
- Set the BGP version to match a neighbor - Range:
4
-4
Outputs
All input properties are implicitly available as output properties. Additionally, the BgpNeighbor resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing BgpNeighbor Resource
Get an existing BgpNeighbor resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: BgpNeighborState, opts?: CustomResourceOptions): BgpNeighbor
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
asn: Optional[str] = None,
cluster_id: Optional[str] = None,
delete_mode: Optional[str] = None,
description: Optional[str] = None,
device: Optional[str] = None,
disable_connected_check: Optional[bool] = None,
ebgp_multihop: Optional[bool] = None,
ebgp_multihop_max_hop: Optional[int] = None,
fall_over_bfd_check_control_plane_failure: Optional[bool] = None,
fall_over_bfd_multi_hop: Optional[bool] = None,
fall_over_bfd_single_hop: Optional[bool] = None,
fall_over_bfd_strict_mode: Optional[bool] = None,
fall_over_default_enable: Optional[bool] = None,
fall_over_default_route_map: Optional[str] = None,
fall_over_maximum_metric_route_map: Optional[str] = None,
ip: Optional[str] = None,
local_as: Optional[str] = None,
local_as_dual_as: Optional[bool] = None,
local_as_no_prepend: Optional[bool] = None,
local_as_replace_as: Optional[bool] = None,
log_neighbor_changes: Optional[bool] = None,
password: Optional[str] = None,
password_type: Optional[int] = None,
remote_as: Optional[str] = None,
shutdown: Optional[bool] = None,
timers_holdtime: Optional[int] = None,
timers_keepalive_interval: Optional[int] = None,
timers_minimum_neighbor_hold: Optional[int] = None,
ttl_security_hops: Optional[int] = None,
update_source_loopback: Optional[str] = None,
version: Optional[int] = None) -> BgpNeighbor
func GetBgpNeighbor(ctx *Context, name string, id IDInput, state *BgpNeighborState, opts ...ResourceOption) (*BgpNeighbor, error)
public static BgpNeighbor Get(string name, Input<string> id, BgpNeighborState? state, CustomResourceOptions? opts = null)
public static BgpNeighbor get(String name, Output<String> id, BgpNeighborState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Asn string
- Cluster
Id string - 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
. - Choices:all
,attributes
- Description string
- Neighbor specific description
- Device string
- A device name from the provider configuration.
- Disable
Connected boolCheck - one-hop away EBGP peer using loopback address
- Ebgp
Multihop bool - Allow EBGP neighbors not on directly connected networks. For single-hop ebgp peers, delete ebgp-multihop directly.
- Ebgp
Multihop intMax Hop - Range:
2
-255
- Range:
- Fall
Over boolBfd Check Control Plane Failure - Retrieve control plane dependent failure info from BFD for BGP GR/NSR operation
- Fall
Over boolBfd Multi Hop - Force BFD multi-hop to detect failure
- Fall
Over boolBfd Single Hop - Force BFD single-hop to detect failure
- Fall
Over boolBfd Strict Mode - Enable BFD strict-mode
- Fall
Over boolDefault Enable - Fall
Over stringDefault Route Map - Fall
Over stringMaximum Metric Route Map - Ip string
- Local
As string - Local
As boolDual As - Accept either real AS or local AS from the ebgp peer
- Local
As boolNo Prepend - Do not prepend local-as to updates from ebgp peers
- Local
As boolReplace As - Replace real AS with local AS in the EBGP updates
- Log
Neighbor boolChanges - Log neighbor up/down and reset reason
- Password string
- Password
Type int - Encryption type (0 to disable encryption, 7 for proprietary) - Range:
0
-7
- Remote
As string - Specify a BGP peer-group remote-as
- Shutdown bool
- Administratively shut down this neighbor
- Timers
Holdtime int - Range:
0
-65535
- Range:
- Timers
Keepalive intInterval - Range:
0
-65535
- Range:
- Timers
Minimum intNeighbor Hold - Range:
0
-65535
- Range:
- Ttl
Security intHops - IP hops - Range:
1
-254
- Update
Source stringLoopback - Loopback interface
- Version int
- Set the BGP version to match a neighbor - Range:
4
-4
- Asn string
- Cluster
Id string - 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
. - Choices:all
,attributes
- Description string
- Neighbor specific description
- Device string
- A device name from the provider configuration.
- Disable
Connected boolCheck - one-hop away EBGP peer using loopback address
- Ebgp
Multihop bool - Allow EBGP neighbors not on directly connected networks. For single-hop ebgp peers, delete ebgp-multihop directly.
- Ebgp
Multihop intMax Hop - Range:
2
-255
- Range:
- Fall
Over boolBfd Check Control Plane Failure - Retrieve control plane dependent failure info from BFD for BGP GR/NSR operation
- Fall
Over boolBfd Multi Hop - Force BFD multi-hop to detect failure
- Fall
Over boolBfd Single Hop - Force BFD single-hop to detect failure
- Fall
Over boolBfd Strict Mode - Enable BFD strict-mode
- Fall
Over boolDefault Enable - Fall
Over stringDefault Route Map - Fall
Over stringMaximum Metric Route Map - Ip string
- Local
As string - Local
As boolDual As - Accept either real AS or local AS from the ebgp peer
- Local
As boolNo Prepend - Do not prepend local-as to updates from ebgp peers
- Local
As boolReplace As - Replace real AS with local AS in the EBGP updates
- Log
Neighbor boolChanges - Log neighbor up/down and reset reason
- Password string
- Password
Type int - Encryption type (0 to disable encryption, 7 for proprietary) - Range:
0
-7
- Remote
As string - Specify a BGP peer-group remote-as
- Shutdown bool
- Administratively shut down this neighbor
- Timers
Holdtime int - Range:
0
-65535
- Range:
- Timers
Keepalive intInterval - Range:
0
-65535
- Range:
- Timers
Minimum intNeighbor Hold - Range:
0
-65535
- Range:
- Ttl
Security intHops - IP hops - Range:
1
-254
- Update
Source stringLoopback - Loopback interface
- Version int
- Set the BGP version to match a neighbor - Range:
4
-4
- asn String
- cluster
Id String - 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
. - Choices:all
,attributes
- description String
- Neighbor specific description
- device String
- A device name from the provider configuration.
- disable
Connected BooleanCheck - one-hop away EBGP peer using loopback address
- ebgp
Multihop Boolean - Allow EBGP neighbors not on directly connected networks. For single-hop ebgp peers, delete ebgp-multihop directly.
- ebgp
Multihop IntegerMax Hop - Range:
2
-255
- Range:
- fall
Over BooleanBfd Check Control Plane Failure - Retrieve control plane dependent failure info from BFD for BGP GR/NSR operation
- fall
Over BooleanBfd Multi Hop - Force BFD multi-hop to detect failure
- fall
Over BooleanBfd Single Hop - Force BFD single-hop to detect failure
- fall
Over BooleanBfd Strict Mode - Enable BFD strict-mode
- fall
Over BooleanDefault Enable - fall
Over StringDefault Route Map - fall
Over StringMaximum Metric Route Map - ip String
- local
As String - local
As BooleanDual As - Accept either real AS or local AS from the ebgp peer
- local
As BooleanNo Prepend - Do not prepend local-as to updates from ebgp peers
- local
As BooleanReplace As - Replace real AS with local AS in the EBGP updates
- log
Neighbor BooleanChanges - Log neighbor up/down and reset reason
- password String
- password
Type Integer - Encryption type (0 to disable encryption, 7 for proprietary) - Range:
0
-7
- remote
As String - Specify a BGP peer-group remote-as
- shutdown Boolean
- Administratively shut down this neighbor
- timers
Holdtime Integer - Range:
0
-65535
- Range:
- timers
Keepalive IntegerInterval - Range:
0
-65535
- Range:
- timers
Minimum IntegerNeighbor Hold - Range:
0
-65535
- Range:
- ttl
Security IntegerHops - IP hops - Range:
1
-254
- update
Source StringLoopback - Loopback interface
- version Integer
- Set the BGP version to match a neighbor - Range:
4
-4
- asn string
- cluster
Id string - 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
. - Choices:all
,attributes
- description string
- Neighbor specific description
- device string
- A device name from the provider configuration.
- disable
Connected booleanCheck - one-hop away EBGP peer using loopback address
- ebgp
Multihop boolean - Allow EBGP neighbors not on directly connected networks. For single-hop ebgp peers, delete ebgp-multihop directly.
- ebgp
Multihop numberMax Hop - Range:
2
-255
- Range:
- fall
Over booleanBfd Check Control Plane Failure - Retrieve control plane dependent failure info from BFD for BGP GR/NSR operation
- fall
Over booleanBfd Multi Hop - Force BFD multi-hop to detect failure
- fall
Over booleanBfd Single Hop - Force BFD single-hop to detect failure
- fall
Over booleanBfd Strict Mode - Enable BFD strict-mode
- fall
Over booleanDefault Enable - fall
Over stringDefault Route Map - fall
Over stringMaximum Metric Route Map - ip string
- local
As string - local
As booleanDual As - Accept either real AS or local AS from the ebgp peer
- local
As booleanNo Prepend - Do not prepend local-as to updates from ebgp peers
- local
As booleanReplace As - Replace real AS with local AS in the EBGP updates
- log
Neighbor booleanChanges - Log neighbor up/down and reset reason
- password string
- password
Type number - Encryption type (0 to disable encryption, 7 for proprietary) - Range:
0
-7
- remote
As string - Specify a BGP peer-group remote-as
- shutdown boolean
- Administratively shut down this neighbor
- timers
Holdtime number - Range:
0
-65535
- Range:
- timers
Keepalive numberInterval - Range:
0
-65535
- Range:
- timers
Minimum numberNeighbor Hold - Range:
0
-65535
- Range:
- ttl
Security numberHops - IP hops - Range:
1
-254
- update
Source stringLoopback - Loopback interface
- version number
- Set the BGP version to match a neighbor - Range:
4
-4
- asn str
- cluster_
id str - delete_
mode str - 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
. - Choices:all
,attributes
- description str
- Neighbor specific description
- device str
- A device name from the provider configuration.
- disable_
connected_ boolcheck - one-hop away EBGP peer using loopback address
- ebgp_
multihop bool - Allow EBGP neighbors not on directly connected networks. For single-hop ebgp peers, delete ebgp-multihop directly.
- ebgp_
multihop_ intmax_ hop - Range:
2
-255
- Range:
- fall_
over_ boolbfd_ check_ control_ plane_ failure - Retrieve control plane dependent failure info from BFD for BGP GR/NSR operation
- fall_
over_ boolbfd_ multi_ hop - Force BFD multi-hop to detect failure
- fall_
over_ boolbfd_ single_ hop - Force BFD single-hop to detect failure
- fall_
over_ boolbfd_ strict_ mode - Enable BFD strict-mode
- fall_
over_ booldefault_ enable - fall_
over_ strdefault_ route_ map - fall_
over_ strmaximum_ metric_ route_ map - ip str
- local_
as str - local_
as_ booldual_ as - Accept either real AS or local AS from the ebgp peer
- local_
as_ boolno_ prepend - Do not prepend local-as to updates from ebgp peers
- local_
as_ boolreplace_ as - Replace real AS with local AS in the EBGP updates
- log_
neighbor_ boolchanges - Log neighbor up/down and reset reason
- password str
- password_
type int - Encryption type (0 to disable encryption, 7 for proprietary) - Range:
0
-7
- remote_
as str - Specify a BGP peer-group remote-as
- shutdown bool
- Administratively shut down this neighbor
- timers_
holdtime int - Range:
0
-65535
- Range:
- timers_
keepalive_ intinterval - Range:
0
-65535
- Range:
- timers_
minimum_ intneighbor_ hold - Range:
0
-65535
- Range:
- ttl_
security_ inthops - IP hops - Range:
1
-254
- update_
source_ strloopback - Loopback interface
- version int
- Set the BGP version to match a neighbor - Range:
4
-4
- asn String
- cluster
Id String - 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
. - Choices:all
,attributes
- description String
- Neighbor specific description
- device String
- A device name from the provider configuration.
- disable
Connected BooleanCheck - one-hop away EBGP peer using loopback address
- ebgp
Multihop Boolean - Allow EBGP neighbors not on directly connected networks. For single-hop ebgp peers, delete ebgp-multihop directly.
- ebgp
Multihop NumberMax Hop - Range:
2
-255
- Range:
- fall
Over BooleanBfd Check Control Plane Failure - Retrieve control plane dependent failure info from BFD for BGP GR/NSR operation
- fall
Over BooleanBfd Multi Hop - Force BFD multi-hop to detect failure
- fall
Over BooleanBfd Single Hop - Force BFD single-hop to detect failure
- fall
Over BooleanBfd Strict Mode - Enable BFD strict-mode
- fall
Over BooleanDefault Enable - fall
Over StringDefault Route Map - fall
Over StringMaximum Metric Route Map - ip String
- local
As String - local
As BooleanDual As - Accept either real AS or local AS from the ebgp peer
- local
As BooleanNo Prepend - Do not prepend local-as to updates from ebgp peers
- local
As BooleanReplace As - Replace real AS with local AS in the EBGP updates
- log
Neighbor BooleanChanges - Log neighbor up/down and reset reason
- password String
- password
Type Number - Encryption type (0 to disable encryption, 7 for proprietary) - Range:
0
-7
- remote
As String - Specify a BGP peer-group remote-as
- shutdown Boolean
- Administratively shut down this neighbor
- timers
Holdtime Number - Range:
0
-65535
- Range:
- timers
Keepalive NumberInterval - Range:
0
-65535
- Range:
- timers
Minimum NumberNeighbor Hold - Range:
0
-65535
- Range:
- ttl
Security NumberHops - IP hops - Range:
1
-254
- update
Source StringLoopback - Loopback interface
- version Number
- Set the BGP version to match a neighbor - Range:
4
-4
Import
$ pulumi import iosxe:index/bgpNeighbor:BgpNeighbor example "Cisco-IOS-XE-native:native/router/Cisco-IOS-XE-bgp:bgp=65000/neighbor=3.3.3.3"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- iosxe lbrlabs/pulumi-iosxe
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
iosxe
Terraform Provider.