1. Packages
  2. Cisco IOS XE Resource Provider
  3. API Docs
  4. getBgpAddressFamilyIpv4Vrf
Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs

iosxe.getBgpAddressFamilyIpv4Vrf

Explore with Pulumi AI

iosxe logo
Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs

    This data source can read the BGP Address Family IPv4 VRF configuration.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Iosxe = Pulumi.Iosxe;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Iosxe.GetBgpAddressFamilyIpv4Vrf.Invoke(new()
        {
            AfName = "unicast",
            Asn = "65000",
        });
    
    });
    
    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.LookupBgpAddressFamilyIpv4Vrf(ctx, &iosxe.LookupBgpAddressFamilyIpv4VrfArgs{
    			AfName: "unicast",
    			Asn:    "65000",
    		}, 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.GetBgpAddressFamilyIpv4VrfArgs;
    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.getBgpAddressFamilyIpv4Vrf(GetBgpAddressFamilyIpv4VrfArgs.builder()
                .afName("unicast")
                .asn("65000")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_iosxe as iosxe
    
    example = iosxe.get_bgp_address_family_ipv4_vrf(af_name="unicast",
        asn="65000")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as iosxe from "@pulumi/iosxe";
    
    const example = iosxe.getBgpAddressFamilyIpv4Vrf({
        afName: "unicast",
        asn: "65000",
    });
    
    variables:
      example:
        fn::invoke:
          Function: iosxe:getBgpAddressFamilyIpv4Vrf
          Arguments:
            afName: unicast
            asn: '65000'
    

    Using getBgpAddressFamilyIpv4Vrf

    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 getBgpAddressFamilyIpv4Vrf(args: GetBgpAddressFamilyIpv4VrfArgs, opts?: InvokeOptions): Promise<GetBgpAddressFamilyIpv4VrfResult>
    function getBgpAddressFamilyIpv4VrfOutput(args: GetBgpAddressFamilyIpv4VrfOutputArgs, opts?: InvokeOptions): Output<GetBgpAddressFamilyIpv4VrfResult>
    def get_bgp_address_family_ipv4_vrf(af_name: Optional[str] = None,
                                        asn: Optional[str] = None,
                                        device: Optional[str] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetBgpAddressFamilyIpv4VrfResult
    def get_bgp_address_family_ipv4_vrf_output(af_name: Optional[pulumi.Input[str]] = None,
                                        asn: Optional[pulumi.Input[str]] = None,
                                        device: Optional[pulumi.Input[str]] = None,
                                        opts: Optional[InvokeOptions] = None) -> Output[GetBgpAddressFamilyIpv4VrfResult]
    func LookupBgpAddressFamilyIpv4Vrf(ctx *Context, args *LookupBgpAddressFamilyIpv4VrfArgs, opts ...InvokeOption) (*LookupBgpAddressFamilyIpv4VrfResult, error)
    func LookupBgpAddressFamilyIpv4VrfOutput(ctx *Context, args *LookupBgpAddressFamilyIpv4VrfOutputArgs, opts ...InvokeOption) LookupBgpAddressFamilyIpv4VrfResultOutput

    > Note: This function is named LookupBgpAddressFamilyIpv4Vrf in the Go SDK.

    public static class GetBgpAddressFamilyIpv4Vrf 
    {
        public static Task<GetBgpAddressFamilyIpv4VrfResult> InvokeAsync(GetBgpAddressFamilyIpv4VrfArgs args, InvokeOptions? opts = null)
        public static Output<GetBgpAddressFamilyIpv4VrfResult> Invoke(GetBgpAddressFamilyIpv4VrfInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetBgpAddressFamilyIpv4VrfResult> getBgpAddressFamilyIpv4Vrf(GetBgpAddressFamilyIpv4VrfArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: iosxe:index/getBgpAddressFamilyIpv4Vrf:getBgpAddressFamilyIpv4Vrf
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AfName string
    Asn string
    Device string
    A device name from the provider configuration.
    AfName string
    Asn string
    Device string
    A device name from the provider configuration.
    afName String
    asn String
    device String
    A device name from the provider configuration.
    afName string
    asn string
    device string
    A device name from the provider configuration.
    af_name str
    asn str
    device str
    A device name from the provider configuration.
    afName String
    asn String
    device String
    A device name from the provider configuration.

    getBgpAddressFamilyIpv4Vrf Result

    The following output properties are available:

    AfName string
    Asn string
    Id string
    The path of the retrieved object.
    Vrfs List<Lbrlabs.PulumiPackage.Iosxe.Outputs.GetBgpAddressFamilyIpv4VrfVrf>
    Device string
    A device name from the provider configuration.
    AfName string
    Asn string
    Id string
    The path of the retrieved object.
    Vrfs []GetBgpAddressFamilyIpv4VrfVrf
    Device string
    A device name from the provider configuration.
    afName String
    asn String
    id String
    The path of the retrieved object.
    vrfs List<GetBgpAddressFamilyIpv4VrfVrf>
    device String
    A device name from the provider configuration.
    afName string
    asn string
    id string
    The path of the retrieved object.
    vrfs GetBgpAddressFamilyIpv4VrfVrf[]
    device string
    A device name from the provider configuration.
    af_name str
    asn str
    id str
    The path of the retrieved object.
    vrfs Sequence[GetBgpAddressFamilyIpv4VrfVrf]
    device str
    A device name from the provider configuration.
    afName String
    asn String
    id String
    The path of the retrieved object.
    vrfs List<Property Map>
    device String
    A device name from the provider configuration.

    Supporting Types

    GetBgpAddressFamilyIpv4VrfVrf

    Ipv4UnicastAdvertiseL2vpnEvpn bool
    Advertise/export prefixes to l2vpn evpn table
    Ipv4UnicastNetworks []GetBgpAddressFamilyIpv4VrfVrfIpv4UnicastNetwork
    Specify a network to announce via BGP
    Ipv4UnicastNetworksMasks []GetBgpAddressFamilyIpv4VrfVrfIpv4UnicastNetworksMask
    Specify a network to announce via BGP
    Ipv4UnicastRedistributeConnected bool
    Connected
    Ipv4UnicastRedistributeStatic bool
    Static routes
    Name string
    ipv4UnicastAdvertiseL2vpnEvpn Boolean
    Advertise/export prefixes to l2vpn evpn table
    ipv4UnicastNetworks List<GetBgpAddressFamilyIpv4VrfVrfIpv4UnicastNetwork>
    Specify a network to announce via BGP
    ipv4UnicastNetworksMasks List<GetBgpAddressFamilyIpv4VrfVrfIpv4UnicastNetworksMask>
    Specify a network to announce via BGP
    ipv4UnicastRedistributeConnected Boolean
    Connected
    ipv4UnicastRedistributeStatic Boolean
    Static routes
    name String
    ipv4UnicastAdvertiseL2vpnEvpn boolean
    Advertise/export prefixes to l2vpn evpn table
    ipv4UnicastNetworks GetBgpAddressFamilyIpv4VrfVrfIpv4UnicastNetwork[]
    Specify a network to announce via BGP
    ipv4UnicastNetworksMasks GetBgpAddressFamilyIpv4VrfVrfIpv4UnicastNetworksMask[]
    Specify a network to announce via BGP
    ipv4UnicastRedistributeConnected boolean
    Connected
    ipv4UnicastRedistributeStatic boolean
    Static routes
    name string
    ipv4UnicastAdvertiseL2vpnEvpn Boolean
    Advertise/export prefixes to l2vpn evpn table
    ipv4UnicastNetworks List<Property Map>
    Specify a network to announce via BGP
    ipv4UnicastNetworksMasks List<Property Map>
    Specify a network to announce via BGP
    ipv4UnicastRedistributeConnected Boolean
    Connected
    ipv4UnicastRedistributeStatic Boolean
    Static routes
    name String

    GetBgpAddressFamilyIpv4VrfVrfIpv4UnicastNetwork

    Backdoor bool
    Evpn bool
    Network string
    RouteMap string
    Backdoor bool
    Evpn bool
    Network string
    RouteMap string
    backdoor Boolean
    evpn Boolean
    network String
    routeMap String
    backdoor boolean
    evpn boolean
    network string
    routeMap string
    backdoor Boolean
    evpn Boolean
    network String
    routeMap String

    GetBgpAddressFamilyIpv4VrfVrfIpv4UnicastNetworksMask

    Backdoor bool
    Evpn bool
    Mask string
    Network string
    RouteMap string
    Backdoor bool
    Evpn bool
    Mask string
    Network string
    RouteMap string
    backdoor Boolean
    evpn Boolean
    mask String
    network String
    routeMap String
    backdoor boolean
    evpn boolean
    mask string
    network string
    routeMap string
    backdoor bool
    evpn bool
    mask str
    network str
    route_map str
    backdoor Boolean
    evpn Boolean
    mask String
    network String
    routeMap String

    Package Details

    Repository
    iosxe lbrlabs/pulumi-iosxe
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the iosxe Terraform Provider.
    iosxe logo
    Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs