Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs
iosxe.getBgpL2vpnEvpnNeighbor
This data source can read the BGP L2VPN EVPN Neighbor configuration.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Iosxe = Pulumi.Iosxe;
return await Deployment.RunAsync(() =>
{
var example = Iosxe.GetBgpL2vpnEvpnNeighbor.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.LookupBgpL2vpnEvpnNeighbor(ctx, &iosxe.LookupBgpL2vpnEvpnNeighborArgs{
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.GetBgpL2vpnEvpnNeighborArgs;
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.getBgpL2vpnEvpnNeighbor(GetBgpL2vpnEvpnNeighborArgs.builder()
.asn("65000")
.ip("3.3.3.3")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as iosxe from "@pulumi/iosxe";
const example = iosxe.getBgpL2vpnEvpnNeighbor({
asn: "65000",
ip: "3.3.3.3",
});
import pulumi
import pulumi_iosxe as iosxe
example = iosxe.get_bgp_l2vpn_evpn_neighbor(asn="65000",
ip="3.3.3.3")
variables:
example:
fn::invoke:
Function: iosxe:getBgpL2vpnEvpnNeighbor
Arguments:
asn: '65000'
ip: 3.3.3.3
Using getBgpL2vpnEvpnNeighbor
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 getBgpL2vpnEvpnNeighbor(args: GetBgpL2vpnEvpnNeighborArgs, opts?: InvokeOptions): Promise<GetBgpL2vpnEvpnNeighborResult>
function getBgpL2vpnEvpnNeighborOutput(args: GetBgpL2vpnEvpnNeighborOutputArgs, opts?: InvokeOptions): Output<GetBgpL2vpnEvpnNeighborResult>def get_bgp_l2vpn_evpn_neighbor(asn: Optional[str] = None,
device: Optional[str] = None,
ip: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetBgpL2vpnEvpnNeighborResult
def get_bgp_l2vpn_evpn_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[GetBgpL2vpnEvpnNeighborResult]func LookupBgpL2vpnEvpnNeighbor(ctx *Context, args *LookupBgpL2vpnEvpnNeighborArgs, opts ...InvokeOption) (*LookupBgpL2vpnEvpnNeighborResult, error)
func LookupBgpL2vpnEvpnNeighborOutput(ctx *Context, args *LookupBgpL2vpnEvpnNeighborOutputArgs, opts ...InvokeOption) LookupBgpL2vpnEvpnNeighborResultOutput> Note: This function is named LookupBgpL2vpnEvpnNeighbor in the Go SDK.
public static class GetBgpL2vpnEvpnNeighbor
{
public static Task<GetBgpL2vpnEvpnNeighborResult> InvokeAsync(GetBgpL2vpnEvpnNeighborArgs args, InvokeOptions? opts = null)
public static Output<GetBgpL2vpnEvpnNeighborResult> Invoke(GetBgpL2vpnEvpnNeighborInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetBgpL2vpnEvpnNeighborResult> getBgpL2vpnEvpnNeighbor(GetBgpL2vpnEvpnNeighborArgs args, InvokeOptions options)
public static Output<GetBgpL2vpnEvpnNeighborResult> getBgpL2vpnEvpnNeighbor(GetBgpL2vpnEvpnNeighborArgs args, InvokeOptions options)
fn::invoke:
function: iosxe:index/getBgpL2vpnEvpnNeighbor:getBgpL2vpnEvpnNeighbor
arguments:
# arguments dictionaryThe following arguments are supported:
getBgpL2vpnEvpnNeighbor Result
The following output properties are available:
- Activate bool
- Enable the address family for this neighbor
- Asn string
- Id string
- The path of the retrieved object.
- Ip string
- Route
Reflector boolClient - Configure a neighbor as Route Reflector client
- Send
Community string - Device string
- A device name from the provider configuration.
- Activate bool
- Enable the address family for this neighbor
- Asn string
- Id string
- The path of the retrieved object.
- Ip string
- Route
Reflector boolClient - Configure a neighbor as Route Reflector client
- Send
Community string - Device string
- A device name from the provider configuration.
- activate Boolean
- Enable the address family for this neighbor
- asn String
- id String
- The path of the retrieved object.
- ip String
- route
Reflector BooleanClient - Configure a neighbor as Route Reflector client
- send
Community String - device String
- A device name from the provider configuration.
- activate boolean
- Enable the address family for this neighbor
- asn string
- id string
- The path of the retrieved object.
- ip string
- route
Reflector booleanClient - Configure a neighbor as Route Reflector client
- send
Community string - device string
- A device name from the provider configuration.
- activate bool
- Enable the address family for this neighbor
- asn str
- id str
- The path of the retrieved object.
- ip str
- route_
reflector_ boolclient - Configure a neighbor as Route Reflector client
- send_
community str - device str
- A device name from the provider configuration.
- activate Boolean
- Enable the address family for this neighbor
- asn String
- id String
- The path of the retrieved object.
- ip String
- route
Reflector BooleanClient - Configure a neighbor as Route Reflector client
- send
Community String - 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.
