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

iosxe.getOspfVrf

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 OSPF VRF configuration.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Iosxe = Pulumi.Iosxe;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Iosxe.GetOspfVrf.Invoke(new()
        {
            ProcessId = 2,
            Vrf = "VRF1",
        });
    
    });
    
    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.LookupOspfVrf(ctx, &iosxe.LookupOspfVrfArgs{
    			ProcessId: 2,
    			Vrf:       "VRF1",
    		}, 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.GetOspfVrfArgs;
    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.getOspfVrf(GetOspfVrfArgs.builder()
                .processId(2)
                .vrf("VRF1")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_iosxe as iosxe
    
    example = iosxe.get_ospf_vrf(process_id=2,
        vrf="VRF1")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as iosxe from "@pulumi/iosxe";
    
    const example = iosxe.getOspfVrf({
        processId: 2,
        vrf: "VRF1",
    });
    
    variables:
      example:
        fn::invoke:
          Function: iosxe:getOspfVrf
          Arguments:
            processId: 2
            vrf: VRF1
    

    Using getOspfVrf

    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 getOspfVrf(args: GetOspfVrfArgs, opts?: InvokeOptions): Promise<GetOspfVrfResult>
    function getOspfVrfOutput(args: GetOspfVrfOutputArgs, opts?: InvokeOptions): Output<GetOspfVrfResult>
    def get_ospf_vrf(device: Optional[str] = None,
                     process_id: Optional[int] = None,
                     vrf: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetOspfVrfResult
    def get_ospf_vrf_output(device: Optional[pulumi.Input[str]] = None,
                     process_id: Optional[pulumi.Input[int]] = None,
                     vrf: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetOspfVrfResult]
    func LookupOspfVrf(ctx *Context, args *LookupOspfVrfArgs, opts ...InvokeOption) (*LookupOspfVrfResult, error)
    func LookupOspfVrfOutput(ctx *Context, args *LookupOspfVrfOutputArgs, opts ...InvokeOption) LookupOspfVrfResultOutput

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

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

    The following arguments are supported:

    ProcessId int
    Process ID
    Vrf string
    VPN Routing/Forwarding Instance
    Device string
    A device name from the provider configuration.
    ProcessId int
    Process ID
    Vrf string
    VPN Routing/Forwarding Instance
    Device string
    A device name from the provider configuration.
    processId Integer
    Process ID
    vrf String
    VPN Routing/Forwarding Instance
    device String
    A device name from the provider configuration.
    processId number
    Process ID
    vrf string
    VPN Routing/Forwarding Instance
    device string
    A device name from the provider configuration.
    process_id int
    Process ID
    vrf str
    VPN Routing/Forwarding Instance
    device str
    A device name from the provider configuration.
    processId Number
    Process ID
    vrf String
    VPN Routing/Forwarding Instance
    device String
    A device name from the provider configuration.

    getOspfVrf Result

    The following output properties are available:

    Areas List<Lbrlabs.PulumiPackage.Iosxe.Outputs.GetOspfVrfArea>
    OSPF area parameters
    BfdAllInterfaces bool
    Enable BFD on all interfaces
    DefaultInformationOriginate bool
    Distribute a default route
    DefaultInformationOriginateAlways bool
    Always advertise default route
    DefaultMetric int
    Set metric of redistributed routes
    Distance int
    Administrative distance
    DomainTag int
    OSPF domain-tag
    Id string
    The path of the retrieved object.
    MplsLdpAutoconfig bool
    Configure LDP automatic configuration
    MplsLdpSync bool
    Configure LDP-IGP Synchronization
    Neighbors List<Lbrlabs.PulumiPackage.Iosxe.Outputs.GetOspfVrfNeighbor>
    Specify a neighbor router
    Networks List<Lbrlabs.PulumiPackage.Iosxe.Outputs.GetOspfVrfNetwork>
    Enable routing on an IP network
    PassiveInterfaceDefault bool
    Suppress routing updates on all interfaces
    Priority int
    OSPF topology priority
    ProcessId int
    Process ID
    RouterId string
    Override configured router identifier (peers will reset)
    Shutdown bool
    Shutdown the OSPF protocol under the current instance
    SummaryAddresses List<Lbrlabs.PulumiPackage.Iosxe.Outputs.GetOspfVrfSummaryAddress>
    Configure IP address summaries
    Vrf string
    VPN Routing/Forwarding Instance
    Device string
    A device name from the provider configuration.
    Areas []GetOspfVrfArea
    OSPF area parameters
    BfdAllInterfaces bool
    Enable BFD on all interfaces
    DefaultInformationOriginate bool
    Distribute a default route
    DefaultInformationOriginateAlways bool
    Always advertise default route
    DefaultMetric int
    Set metric of redistributed routes
    Distance int
    Administrative distance
    DomainTag int
    OSPF domain-tag
    Id string
    The path of the retrieved object.
    MplsLdpAutoconfig bool
    Configure LDP automatic configuration
    MplsLdpSync bool
    Configure LDP-IGP Synchronization
    Neighbors []GetOspfVrfNeighbor
    Specify a neighbor router
    Networks []GetOspfVrfNetwork
    Enable routing on an IP network
    PassiveInterfaceDefault bool
    Suppress routing updates on all interfaces
    Priority int
    OSPF topology priority
    ProcessId int
    Process ID
    RouterId string
    Override configured router identifier (peers will reset)
    Shutdown bool
    Shutdown the OSPF protocol under the current instance
    SummaryAddresses []GetOspfVrfSummaryAddress
    Configure IP address summaries
    Vrf string
    VPN Routing/Forwarding Instance
    Device string
    A device name from the provider configuration.
    areas List<GetOspfVrfArea>
    OSPF area parameters
    bfdAllInterfaces Boolean
    Enable BFD on all interfaces
    defaultInformationOriginate Boolean
    Distribute a default route
    defaultInformationOriginateAlways Boolean
    Always advertise default route
    defaultMetric Integer
    Set metric of redistributed routes
    distance Integer
    Administrative distance
    domainTag Integer
    OSPF domain-tag
    id String
    The path of the retrieved object.
    mplsLdpAutoconfig Boolean
    Configure LDP automatic configuration
    mplsLdpSync Boolean
    Configure LDP-IGP Synchronization
    neighbors List<GetOspfVrfNeighbor>
    Specify a neighbor router
    networks List<GetOspfVrfNetwork>
    Enable routing on an IP network
    passiveInterfaceDefault Boolean
    Suppress routing updates on all interfaces
    priority Integer
    OSPF topology priority
    processId Integer
    Process ID
    routerId String
    Override configured router identifier (peers will reset)
    shutdown Boolean
    Shutdown the OSPF protocol under the current instance
    summaryAddresses List<GetOspfVrfSummaryAddress>
    Configure IP address summaries
    vrf String
    VPN Routing/Forwarding Instance
    device String
    A device name from the provider configuration.
    areas GetOspfVrfArea[]
    OSPF area parameters
    bfdAllInterfaces boolean
    Enable BFD on all interfaces
    defaultInformationOriginate boolean
    Distribute a default route
    defaultInformationOriginateAlways boolean
    Always advertise default route
    defaultMetric number
    Set metric of redistributed routes
    distance number
    Administrative distance
    domainTag number
    OSPF domain-tag
    id string
    The path of the retrieved object.
    mplsLdpAutoconfig boolean
    Configure LDP automatic configuration
    mplsLdpSync boolean
    Configure LDP-IGP Synchronization
    neighbors GetOspfVrfNeighbor[]
    Specify a neighbor router
    networks GetOspfVrfNetwork[]
    Enable routing on an IP network
    passiveInterfaceDefault boolean
    Suppress routing updates on all interfaces
    priority number
    OSPF topology priority
    processId number
    Process ID
    routerId string
    Override configured router identifier (peers will reset)
    shutdown boolean
    Shutdown the OSPF protocol under the current instance
    summaryAddresses GetOspfVrfSummaryAddress[]
    Configure IP address summaries
    vrf string
    VPN Routing/Forwarding Instance
    device string
    A device name from the provider configuration.
    areas Sequence[GetOspfVrfArea]
    OSPF area parameters
    bfd_all_interfaces bool
    Enable BFD on all interfaces
    default_information_originate bool
    Distribute a default route
    default_information_originate_always bool
    Always advertise default route
    default_metric int
    Set metric of redistributed routes
    distance int
    Administrative distance
    domain_tag int
    OSPF domain-tag
    id str
    The path of the retrieved object.
    mpls_ldp_autoconfig bool
    Configure LDP automatic configuration
    mpls_ldp_sync bool
    Configure LDP-IGP Synchronization
    neighbors Sequence[GetOspfVrfNeighbor]
    Specify a neighbor router
    networks Sequence[GetOspfVrfNetwork]
    Enable routing on an IP network
    passive_interface_default bool
    Suppress routing updates on all interfaces
    priority int
    OSPF topology priority
    process_id int
    Process ID
    router_id str
    Override configured router identifier (peers will reset)
    shutdown bool
    Shutdown the OSPF protocol under the current instance
    summary_addresses Sequence[GetOspfVrfSummaryAddress]
    Configure IP address summaries
    vrf str
    VPN Routing/Forwarding Instance
    device str
    A device name from the provider configuration.
    areas List<Property Map>
    OSPF area parameters
    bfdAllInterfaces Boolean
    Enable BFD on all interfaces
    defaultInformationOriginate Boolean
    Distribute a default route
    defaultInformationOriginateAlways Boolean
    Always advertise default route
    defaultMetric Number
    Set metric of redistributed routes
    distance Number
    Administrative distance
    domainTag Number
    OSPF domain-tag
    id String
    The path of the retrieved object.
    mplsLdpAutoconfig Boolean
    Configure LDP automatic configuration
    mplsLdpSync Boolean
    Configure LDP-IGP Synchronization
    neighbors List<Property Map>
    Specify a neighbor router
    networks List<Property Map>
    Enable routing on an IP network
    passiveInterfaceDefault Boolean
    Suppress routing updates on all interfaces
    priority Number
    OSPF topology priority
    processId Number
    Process ID
    routerId String
    Override configured router identifier (peers will reset)
    shutdown Boolean
    Shutdown the OSPF protocol under the current instance
    summaryAddresses List<Property Map>
    Configure IP address summaries
    vrf String
    VPN Routing/Forwarding Instance
    device String
    A device name from the provider configuration.

    Supporting Types

    GetOspfVrfArea

    AreaId string
    OSPF area ID
    AuthenticationMessageDigest bool
    Use message-digest authentication
    Nssa bool
    Specify a NSSA area
    NssaDefaultInformationOriginate bool
    Originate Type 7 default into NSSA area
    NssaDefaultInformationOriginateMetric int
    OSPF default metric
    NssaDefaultInformationOriginateMetricType int
    OSPF metric type for default routes
    NssaNoRedistribution bool
    No redistribution into this NSSA area
    NssaNoSummary bool
    Do not send summary LSA into NSSA
    AreaId string
    OSPF area ID
    AuthenticationMessageDigest bool
    Use message-digest authentication
    Nssa bool
    Specify a NSSA area
    NssaDefaultInformationOriginate bool
    Originate Type 7 default into NSSA area
    NssaDefaultInformationOriginateMetric int
    OSPF default metric
    NssaDefaultInformationOriginateMetricType int
    OSPF metric type for default routes
    NssaNoRedistribution bool
    No redistribution into this NSSA area
    NssaNoSummary bool
    Do not send summary LSA into NSSA
    areaId String
    OSPF area ID
    authenticationMessageDigest Boolean
    Use message-digest authentication
    nssa Boolean
    Specify a NSSA area
    nssaDefaultInformationOriginate Boolean
    Originate Type 7 default into NSSA area
    nssaDefaultInformationOriginateMetric Integer
    OSPF default metric
    nssaDefaultInformationOriginateMetricType Integer
    OSPF metric type for default routes
    nssaNoRedistribution Boolean
    No redistribution into this NSSA area
    nssaNoSummary Boolean
    Do not send summary LSA into NSSA
    areaId string
    OSPF area ID
    authenticationMessageDigest boolean
    Use message-digest authentication
    nssa boolean
    Specify a NSSA area
    nssaDefaultInformationOriginate boolean
    Originate Type 7 default into NSSA area
    nssaDefaultInformationOriginateMetric number
    OSPF default metric
    nssaDefaultInformationOriginateMetricType number
    OSPF metric type for default routes
    nssaNoRedistribution boolean
    No redistribution into this NSSA area
    nssaNoSummary boolean
    Do not send summary LSA into NSSA
    area_id str
    OSPF area ID
    authentication_message_digest bool
    Use message-digest authentication
    nssa bool
    Specify a NSSA area
    nssa_default_information_originate bool
    Originate Type 7 default into NSSA area
    nssa_default_information_originate_metric int
    OSPF default metric
    nssa_default_information_originate_metric_type int
    OSPF metric type for default routes
    nssa_no_redistribution bool
    No redistribution into this NSSA area
    nssa_no_summary bool
    Do not send summary LSA into NSSA
    areaId String
    OSPF area ID
    authenticationMessageDigest Boolean
    Use message-digest authentication
    nssa Boolean
    Specify a NSSA area
    nssaDefaultInformationOriginate Boolean
    Originate Type 7 default into NSSA area
    nssaDefaultInformationOriginateMetric Number
    OSPF default metric
    nssaDefaultInformationOriginateMetricType Number
    OSPF metric type for default routes
    nssaNoRedistribution Boolean
    No redistribution into this NSSA area
    nssaNoSummary Boolean
    Do not send summary LSA into NSSA

    GetOspfVrfNeighbor

    Cost int
    OSPF cost for point-to-multipoint neighbor
    Ip string
    Neighbor address
    Priority int
    OSPF priority of non-broadcast neighbor
    Cost int
    OSPF cost for point-to-multipoint neighbor
    Ip string
    Neighbor address
    Priority int
    OSPF priority of non-broadcast neighbor
    cost Integer
    OSPF cost for point-to-multipoint neighbor
    ip String
    Neighbor address
    priority Integer
    OSPF priority of non-broadcast neighbor
    cost number
    OSPF cost for point-to-multipoint neighbor
    ip string
    Neighbor address
    priority number
    OSPF priority of non-broadcast neighbor
    cost int
    OSPF cost for point-to-multipoint neighbor
    ip str
    Neighbor address
    priority int
    OSPF priority of non-broadcast neighbor
    cost Number
    OSPF cost for point-to-multipoint neighbor
    ip String
    Neighbor address
    priority Number
    OSPF priority of non-broadcast neighbor

    GetOspfVrfNetwork

    Area string
    Set the OSPF area ID
    Ip string
    Network number
    Wildcard string
    OSPF wild card bits
    Area string
    Set the OSPF area ID
    Ip string
    Network number
    Wildcard string
    OSPF wild card bits
    area String
    Set the OSPF area ID
    ip String
    Network number
    wildcard String
    OSPF wild card bits
    area string
    Set the OSPF area ID
    ip string
    Network number
    wildcard string
    OSPF wild card bits
    area str
    Set the OSPF area ID
    ip str
    Network number
    wildcard str
    OSPF wild card bits
    area String
    Set the OSPF area ID
    ip String
    Network number
    wildcard String
    OSPF wild card bits

    GetOspfVrfSummaryAddress

    Ip string
    IP summary address
    Mask string
    Summary mask
    Ip string
    IP summary address
    Mask string
    Summary mask
    ip String
    IP summary address
    mask String
    Summary mask
    ip string
    IP summary address
    mask string
    Summary mask
    ip str
    IP summary address
    mask str
    Summary mask
    ip String
    IP summary address
    mask String
    Summary mask

    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