Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs
iosxe.getOspf
Explore with Pulumi AI
This data source can read the OSPF configuration.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Iosxe = Pulumi.Iosxe;
return await Deployment.RunAsync(() => 
{
    var example = Iosxe.GetOspf.Invoke(new()
    {
        ProcessId = 1,
    });
});
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.LookupOspf(ctx, &iosxe.LookupOspfArgs{
			ProcessId: 1,
		}, 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.GetOspfArgs;
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.getOspf(GetOspfArgs.builder()
            .processId(1)
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as iosxe from "@pulumi/iosxe";
const example = iosxe.getOspf({
    processId: 1,
});
import pulumi
import pulumi_iosxe as iosxe
example = iosxe.get_ospf(process_id=1)
variables:
  example:
    fn::invoke:
      Function: iosxe:getOspf
      Arguments:
        processId: 1
Using getOspf
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 getOspf(args: GetOspfArgs, opts?: InvokeOptions): Promise<GetOspfResult>
function getOspfOutput(args: GetOspfOutputArgs, opts?: InvokeOptions): Output<GetOspfResult>def get_ospf(device: Optional[str] = None,
             process_id: Optional[int] = None,
             opts: Optional[InvokeOptions] = None) -> GetOspfResult
def get_ospf_output(device: Optional[pulumi.Input[str]] = None,
             process_id: Optional[pulumi.Input[int]] = None,
             opts: Optional[InvokeOptions] = None) -> Output[GetOspfResult]func LookupOspf(ctx *Context, args *LookupOspfArgs, opts ...InvokeOption) (*LookupOspfResult, error)
func LookupOspfOutput(ctx *Context, args *LookupOspfOutputArgs, opts ...InvokeOption) LookupOspfResultOutput> Note: This function is named LookupOspf in the Go SDK.
public static class GetOspf 
{
    public static Task<GetOspfResult> InvokeAsync(GetOspfArgs args, InvokeOptions? opts = null)
    public static Output<GetOspfResult> Invoke(GetOspfInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetOspfResult> getOspf(GetOspfArgs args, InvokeOptions options)
public static Output<GetOspfResult> getOspf(GetOspfArgs args, InvokeOptions options)
fn::invoke:
  function: iosxe:index/getOspf:getOspf
  arguments:
    # arguments dictionaryThe following arguments are supported:
- process_id int
- Process ID
- device str
- A device name from the provider configuration.
getOspf Result
The following output properties are available:
- Areas
List<Lbrlabs.Pulumi Package. Iosxe. Outputs. Get Ospf Area> 
- OSPF area parameters
- BfdAll boolInterfaces 
- Enable BFD on all interfaces
- DefaultInformation boolOriginate 
- Distribute a default route
- DefaultInformation boolOriginate Always 
- 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.
- MplsLdp boolAutoconfig 
- Configure LDP automatic configuration
- MplsLdp boolSync 
- Configure LDP-IGP Synchronization
- Neighbors
List<Lbrlabs.Pulumi Package. Iosxe. Outputs. Get Ospf Neighbor> 
- Specify a neighbor router
- Networks
List<Lbrlabs.Pulumi Package. Iosxe. Outputs. Get Ospf Network> 
- Enable routing on an IP network
- PassiveInterface boolDefault 
- 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.Pulumi Package. Iosxe. Outputs. Get Ospf Summary Address> 
- Configure IP address summaries
- Device string
- A device name from the provider configuration.
- Areas
[]GetOspf Area 
- OSPF area parameters
- BfdAll boolInterfaces 
- Enable BFD on all interfaces
- DefaultInformation boolOriginate 
- Distribute a default route
- DefaultInformation boolOriginate Always 
- 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.
- MplsLdp boolAutoconfig 
- Configure LDP automatic configuration
- MplsLdp boolSync 
- Configure LDP-IGP Synchronization
- Neighbors
[]GetOspf Neighbor 
- Specify a neighbor router
- Networks
[]GetOspf Network 
- Enable routing on an IP network
- PassiveInterface boolDefault 
- 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 []GetOspf Summary Address 
- Configure IP address summaries
- Device string
- A device name from the provider configuration.
- areas
List<GetOspf Area> 
- OSPF area parameters
- bfdAll BooleanInterfaces 
- Enable BFD on all interfaces
- defaultInformation BooleanOriginate 
- Distribute a default route
- defaultInformation BooleanOriginate Always 
- 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.
- mplsLdp BooleanAutoconfig 
- Configure LDP automatic configuration
- mplsLdp BooleanSync 
- Configure LDP-IGP Synchronization
- neighbors
List<GetOspf Neighbor> 
- Specify a neighbor router
- networks
List<GetOspf Network> 
- Enable routing on an IP network
- passiveInterface BooleanDefault 
- 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<GetOspf Summary Address> 
- Configure IP address summaries
- device String
- A device name from the provider configuration.
- areas
GetOspf Area[] 
- OSPF area parameters
- bfdAll booleanInterfaces 
- Enable BFD on all interfaces
- defaultInformation booleanOriginate 
- Distribute a default route
- defaultInformation booleanOriginate Always 
- 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.
- mplsLdp booleanAutoconfig 
- Configure LDP automatic configuration
- mplsLdp booleanSync 
- Configure LDP-IGP Synchronization
- neighbors
GetOspf Neighbor[] 
- Specify a neighbor router
- networks
GetOspf Network[] 
- Enable routing on an IP network
- passiveInterface booleanDefault 
- 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 GetOspf Summary Address[] 
- Configure IP address summaries
- device string
- A device name from the provider configuration.
- areas
Sequence[GetOspf Area] 
- OSPF area parameters
- bfd_all_ boolinterfaces 
- Enable BFD on all interfaces
- default_information_ booloriginate 
- Distribute a default route
- default_information_ booloriginate_ always 
- 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_ boolautoconfig 
- Configure LDP automatic configuration
- mpls_ldp_ boolsync 
- Configure LDP-IGP Synchronization
- neighbors
Sequence[GetOspf Neighbor] 
- Specify a neighbor router
- networks
Sequence[GetOspf Network] 
- Enable routing on an IP network
- passive_interface_ booldefault 
- 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[GetOspf Summary Address] 
- Configure IP address summaries
- device str
- A device name from the provider configuration.
- areas List<Property Map>
- OSPF area parameters
- bfdAll BooleanInterfaces 
- Enable BFD on all interfaces
- defaultInformation BooleanOriginate 
- Distribute a default route
- defaultInformation BooleanOriginate Always 
- 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.
- mplsLdp BooleanAutoconfig 
- Configure LDP automatic configuration
- mplsLdp BooleanSync 
- Configure LDP-IGP Synchronization
- neighbors List<Property Map>
- Specify a neighbor router
- networks List<Property Map>
- Enable routing on an IP network
- passiveInterface BooleanDefault 
- 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
- device String
- A device name from the provider configuration.
Supporting Types
GetOspfArea  
- AreaId string
- OSPF area ID
- AuthenticationMessage boolDigest 
- Use message-digest authentication
- Nssa bool
- Specify a NSSA area
- NssaDefault boolInformation Originate 
- Originate Type 7 default into NSSA area
- NssaDefault intInformation Originate Metric 
- OSPF default metric
- NssaDefault intInformation Originate Metric Type 
- OSPF metric type for default routes
- NssaNo boolRedistribution 
- No redistribution into this NSSA area
- NssaNo boolSummary 
- Do not send summary LSA into NSSA
- AreaId string
- OSPF area ID
- AuthenticationMessage boolDigest 
- Use message-digest authentication
- Nssa bool
- Specify a NSSA area
- NssaDefault boolInformation Originate 
- Originate Type 7 default into NSSA area
- NssaDefault intInformation Originate Metric 
- OSPF default metric
- NssaDefault intInformation Originate Metric Type 
- OSPF metric type for default routes
- NssaNo boolRedistribution 
- No redistribution into this NSSA area
- NssaNo boolSummary 
- Do not send summary LSA into NSSA
- areaId String
- OSPF area ID
- authenticationMessage BooleanDigest 
- Use message-digest authentication
- nssa Boolean
- Specify a NSSA area
- nssaDefault BooleanInformation Originate 
- Originate Type 7 default into NSSA area
- nssaDefault IntegerInformation Originate Metric 
- OSPF default metric
- nssaDefault IntegerInformation Originate Metric Type 
- OSPF metric type for default routes
- nssaNo BooleanRedistribution 
- No redistribution into this NSSA area
- nssaNo BooleanSummary 
- Do not send summary LSA into NSSA
- areaId string
- OSPF area ID
- authenticationMessage booleanDigest 
- Use message-digest authentication
- nssa boolean
- Specify a NSSA area
- nssaDefault booleanInformation Originate 
- Originate Type 7 default into NSSA area
- nssaDefault numberInformation Originate Metric 
- OSPF default metric
- nssaDefault numberInformation Originate Metric Type 
- OSPF metric type for default routes
- nssaNo booleanRedistribution 
- No redistribution into this NSSA area
- nssaNo booleanSummary 
- Do not send summary LSA into NSSA
- area_id str
- OSPF area ID
- authentication_message_ booldigest 
- Use message-digest authentication
- nssa bool
- Specify a NSSA area
- nssa_default_ boolinformation_ originate 
- Originate Type 7 default into NSSA area
- nssa_default_ intinformation_ originate_ metric 
- OSPF default metric
- nssa_default_ intinformation_ originate_ metric_ type 
- OSPF metric type for default routes
- nssa_no_ boolredistribution 
- No redistribution into this NSSA area
- nssa_no_ boolsummary 
- Do not send summary LSA into NSSA
- areaId String
- OSPF area ID
- authenticationMessage BooleanDigest 
- Use message-digest authentication
- nssa Boolean
- Specify a NSSA area
- nssaDefault BooleanInformation Originate 
- Originate Type 7 default into NSSA area
- nssaDefault NumberInformation Originate Metric 
- OSPF default metric
- nssaDefault NumberInformation Originate Metric Type 
- OSPF metric type for default routes
- nssaNo BooleanRedistribution 
- No redistribution into this NSSA area
- nssaNo BooleanSummary 
- Do not send summary LSA into NSSA
GetOspfNeighbor  
GetOspfNetwork  
GetOspfSummaryAddress   
Package Details
- Repository
- iosxe lbrlabs/pulumi-iosxe
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the iosxeTerraform Provider.