Viewing docs for Cisco IOS XE v0.0.1
published on Friday, Sep 22, 2023 by lbrlabs
published on Friday, Sep 22, 2023 by lbrlabs
Viewing docs for Cisco IOS XE v0.0.1
published on Friday, Sep 22, 2023 by lbrlabs
published on Friday, Sep 22, 2023 by lbrlabs
This data source can read the BGP Neighbor configuration.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Iosxe = Pulumi.Iosxe;
return await Deployment.RunAsync(() =>
{
var example = Iosxe.GetBgpNeighbor.Invoke(new()
{
Asn = "65000",
Ip = "3.3.3.3",
});
});
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.LookupBgpNeighbor(ctx, &iosxe.LookupBgpNeighborArgs{
Asn: "65000",
Ip: "3.3.3.3",
}, nil)
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.IosxeFunctions;
import com.pulumi.iosxe.inputs.GetBgpNeighborArgs;
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) {
final var example = IosxeFunctions.getBgpNeighbor(GetBgpNeighborArgs.builder()
.asn("65000")
.ip("3.3.3.3")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as iosxe from "@pulumi/iosxe";
const example = iosxe.getBgpNeighbor({
asn: "65000",
ip: "3.3.3.3",
});
import pulumi
import pulumi_iosxe as iosxe
example = iosxe.get_bgp_neighbor(asn="65000",
ip="3.3.3.3")
variables:
example:
fn::invoke:
Function: iosxe:getBgpNeighbor
Arguments:
asn: '65000'
ip: 3.3.3.3
Using getBgpNeighbor
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getBgpNeighbor(args: GetBgpNeighborArgs, opts?: InvokeOptions): Promise<GetBgpNeighborResult>
function getBgpNeighborOutput(args: GetBgpNeighborOutputArgs, opts?: InvokeOptions): Output<GetBgpNeighborResult>def get_bgp_neighbor(asn: Optional[str] = None,
device: Optional[str] = None,
ip: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetBgpNeighborResult
def get_bgp_neighbor_output(asn: Optional[pulumi.Input[str]] = None,
device: Optional[pulumi.Input[str]] = None,
ip: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetBgpNeighborResult]func LookupBgpNeighbor(ctx *Context, args *LookupBgpNeighborArgs, opts ...InvokeOption) (*LookupBgpNeighborResult, error)
func LookupBgpNeighborOutput(ctx *Context, args *LookupBgpNeighborOutputArgs, opts ...InvokeOption) LookupBgpNeighborResultOutput> Note: This function is named LookupBgpNeighbor in the Go SDK.
public static class GetBgpNeighbor
{
public static Task<GetBgpNeighborResult> InvokeAsync(GetBgpNeighborArgs args, InvokeOptions? opts = null)
public static Output<GetBgpNeighborResult> Invoke(GetBgpNeighborInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetBgpNeighborResult> getBgpNeighbor(GetBgpNeighborArgs args, InvokeOptions options)
public static Output<GetBgpNeighborResult> getBgpNeighbor(GetBgpNeighborArgs args, InvokeOptions options)
fn::invoke:
function: iosxe:index/getBgpNeighbor:getBgpNeighbor
arguments:
# arguments dictionaryThe following arguments are supported:
getBgpNeighbor Result
The following output properties are available:
- Asn string
- Cluster
Id string - Description string
- Neighbor specific description
- 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 - 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 - Id string
- The path of the retrieved object.
- 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)
- Remote
As string - Specify a BGP peer-group remote-as
- Shutdown bool
- Administratively shut down this neighbor
- Timers
Holdtime int - Timers
Keepalive intInterval - Timers
Minimum intNeighbor Hold - Ttl
Security intHops - IP hops
- Update
Source stringLoopback - Loopback interface
- Version int
- Set the BGP version to match a neighbor
- Device string
- A device name from the provider configuration.
- Asn string
- Cluster
Id string - Description string
- Neighbor specific description
- 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 - 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 - Id string
- The path of the retrieved object.
- 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)
- Remote
As string - Specify a BGP peer-group remote-as
- Shutdown bool
- Administratively shut down this neighbor
- Timers
Holdtime int - Timers
Keepalive intInterval - Timers
Minimum intNeighbor Hold - Ttl
Security intHops - IP hops
- Update
Source stringLoopback - Loopback interface
- Version int
- Set the BGP version to match a neighbor
- Device string
- A device name from the provider configuration.
- asn String
- cluster
Id String - description String
- Neighbor specific description
- 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 - 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 - id String
- The path of the retrieved object.
- 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)
- remote
As String - Specify a BGP peer-group remote-as
- shutdown Boolean
- Administratively shut down this neighbor
- timers
Holdtime Integer - timers
Keepalive IntegerInterval - timers
Minimum IntegerNeighbor Hold - ttl
Security IntegerHops - IP hops
- update
Source StringLoopback - Loopback interface
- version Integer
- Set the BGP version to match a neighbor
- device String
- A device name from the provider configuration.
- asn string
- cluster
Id string - description string
- Neighbor specific description
- 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 - 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 - id string
- The path of the retrieved object.
- 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)
- remote
As string - Specify a BGP peer-group remote-as
- shutdown boolean
- Administratively shut down this neighbor
- timers
Holdtime number - timers
Keepalive numberInterval - timers
Minimum numberNeighbor Hold - ttl
Security numberHops - IP hops
- update
Source stringLoopback - Loopback interface
- version number
- Set the BGP version to match a neighbor
- device string
- A device name from the provider configuration.
- asn str
- cluster_
id str - description str
- Neighbor specific description
- 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 - 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 - id str
- The path of the retrieved object.
- 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)
- remote_
as str - Specify a BGP peer-group remote-as
- shutdown bool
- Administratively shut down this neighbor
- timers_
holdtime int - timers_
keepalive_ intinterval - timers_
minimum_ intneighbor_ hold - ttl_
security_ inthops - IP hops
- update_
source_ strloopback - Loopback interface
- version int
- Set the BGP version to match a neighbor
- device str
- A device name from the provider configuration.
- asn String
- cluster
Id String - description String
- Neighbor specific description
- 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 - 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 - id String
- The path of the retrieved object.
- 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)
- remote
As String - Specify a BGP peer-group remote-as
- shutdown Boolean
- Administratively shut down this neighbor
- timers
Holdtime Number - timers
Keepalive NumberInterval - timers
Minimum NumberNeighbor Hold - ttl
Security NumberHops - IP hops
- update
Source StringLoopback - Loopback interface
- version Number
- Set the BGP version to match a neighbor
- device String
- A device name from the provider configuration.
Package Details
- Repository
- iosxe lbrlabs/pulumi-iosxe
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
iosxeTerraform Provider.
Viewing docs for Cisco IOS XE v0.0.1
published on Friday, Sep 22, 2023 by lbrlabs
published on Friday, Sep 22, 2023 by lbrlabs
