1. Packages
  2. Routeros Provider
  3. API Docs
  4. RoutingOspfInstance
routeros 1.83.0 published on Wednesday, Apr 16, 2025 by terraform-routeros

routeros.RoutingOspfInstance

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as routeros from "@pulumi/routeros";

const testRoutingOspfInstance = new routeros.RoutingOspfInstance("testRoutingOspfInstance", {});
Copy
import pulumi
import pulumi_routeros as routeros

test_routing_ospf_instance = routeros.RoutingOspfInstance("testRoutingOspfInstance")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/routeros/routeros"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := routeros.NewRoutingOspfInstance(ctx, "testRoutingOspfInstance", nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Routeros = Pulumi.Routeros;

return await Deployment.RunAsync(() => 
{
    var testRoutingOspfInstance = new Routeros.RoutingOspfInstance("testRoutingOspfInstance");

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.routeros.RoutingOspfInstance;
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) {
        var testRoutingOspfInstance = new RoutingOspfInstance("testRoutingOspfInstance");

    }
}
Copy
resources:
  testRoutingOspfInstance:
    type: routeros:RoutingOspfInstance
Copy

Create RoutingOspfInstance Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new RoutingOspfInstance(name: string, args?: RoutingOspfInstanceArgs, opts?: CustomResourceOptions);
@overload
def RoutingOspfInstance(resource_name: str,
                        args: Optional[RoutingOspfInstanceArgs] = None,
                        opts: Optional[ResourceOptions] = None)

@overload
def RoutingOspfInstance(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        ___id_: Optional[float] = None,
                        ___path_: Optional[str] = None,
                        comment: Optional[str] = None,
                        disabled: Optional[bool] = None,
                        domain_id: Optional[str] = None,
                        domain_tag: Optional[float] = None,
                        in_filter_chain: Optional[str] = None,
                        mpls_te_address: Optional[str] = None,
                        mpls_te_area: Optional[str] = None,
                        name: Optional[str] = None,
                        originate_default: Optional[str] = None,
                        out_filter_chain: Optional[str] = None,
                        out_filter_select: Optional[str] = None,
                        redistributes: Optional[Sequence[str]] = None,
                        router_id: Optional[str] = None,
                        routing_ospf_instance_id: Optional[str] = None,
                        routing_table: Optional[str] = None,
                        version: Optional[float] = None,
                        vrf: Optional[str] = None)
func NewRoutingOspfInstance(ctx *Context, name string, args *RoutingOspfInstanceArgs, opts ...ResourceOption) (*RoutingOspfInstance, error)
public RoutingOspfInstance(string name, RoutingOspfInstanceArgs? args = null, CustomResourceOptions? opts = null)
public RoutingOspfInstance(String name, RoutingOspfInstanceArgs args)
public RoutingOspfInstance(String name, RoutingOspfInstanceArgs args, CustomResourceOptions options)
type: routeros:RoutingOspfInstance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args RoutingOspfInstanceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args RoutingOspfInstanceArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args RoutingOspfInstanceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args RoutingOspfInstanceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. RoutingOspfInstanceArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

RoutingOspfInstance Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The RoutingOspfInstance resource accepts the following input properties:

Comment string
Disabled bool
DomainId string
MPLS-related parameter.
DomainTag double
if set, then used in route redistribution (as route-tag in all external LSAs generated by this router), and in route calculation (all external LSAs having this route tag are ignored). Needed for interoperability with older Cisco systems. By default not set.
InFilterChain string
name of the routing filter chain used for incoming prefixes
MplsTeAddress string
the area used for MPLS traffic engineering.
MplsTeArea string
the area used for MPLS traffic engineering.
Name string
OriginateDefault string
Specifies default route (0.0.0.0/0) distribution method.
OutFilterChain string
name of the routing filter chain used for outgoing prefixes filtering.
OutFilterSelect string
name of the routing filter select chain, used for output selection.
Redistributes List<string>
Enable redistribution of specific route types.
RouterId string
OSPF Router ID. Can be set explicitly as an IP address, or as the name of the router-id instance.
RoutingOspfInstanceId string
The ID of this resource.
RoutingTable string
Name of the routing table in use.
Version double
OSPF version this instance will be running (v2 for IPv4, v3 for IPv6).
Vrf string
The VRF table this resource operates on.
___id_ double
Resource ID type (.id / name). This is an internal service field, setting a value is not required.
___path_ string
Resource path for CRUD operations. This is an internal service field, setting a value is not required.
Comment string
Disabled bool
DomainId string
MPLS-related parameter.
DomainTag float64
if set, then used in route redistribution (as route-tag in all external LSAs generated by this router), and in route calculation (all external LSAs having this route tag are ignored). Needed for interoperability with older Cisco systems. By default not set.
InFilterChain string
name of the routing filter chain used for incoming prefixes
MplsTeAddress string
the area used for MPLS traffic engineering.
MplsTeArea string
the area used for MPLS traffic engineering.
Name string
OriginateDefault string
Specifies default route (0.0.0.0/0) distribution method.
OutFilterChain string
name of the routing filter chain used for outgoing prefixes filtering.
OutFilterSelect string
name of the routing filter select chain, used for output selection.
Redistributes []string
Enable redistribution of specific route types.
RouterId string
OSPF Router ID. Can be set explicitly as an IP address, or as the name of the router-id instance.
RoutingOspfInstanceId string
The ID of this resource.
RoutingTable string
Name of the routing table in use.
Version float64
OSPF version this instance will be running (v2 for IPv4, v3 for IPv6).
Vrf string
The VRF table this resource operates on.
___id_ float64
Resource ID type (.id / name). This is an internal service field, setting a value is not required.
___path_ string
Resource path for CRUD operations. This is an internal service field, setting a value is not required.
___id_ Double
Resource ID type (.id / name). This is an internal service field, setting a value is not required.
___path_ String
Resource path for CRUD operations. This is an internal service field, setting a value is not required.
comment String
disabled Boolean
domainId String
MPLS-related parameter.
domainTag Double
if set, then used in route redistribution (as route-tag in all external LSAs generated by this router), and in route calculation (all external LSAs having this route tag are ignored). Needed for interoperability with older Cisco systems. By default not set.
inFilterChain String
name of the routing filter chain used for incoming prefixes
mplsTeAddress String
the area used for MPLS traffic engineering.
mplsTeArea String
the area used for MPLS traffic engineering.
name String
originateDefault String
Specifies default route (0.0.0.0/0) distribution method.
outFilterChain String
name of the routing filter chain used for outgoing prefixes filtering.
outFilterSelect String
name of the routing filter select chain, used for output selection.
redistributes List<String>
Enable redistribution of specific route types.
routerId String
OSPF Router ID. Can be set explicitly as an IP address, or as the name of the router-id instance.
routingOspfInstanceId String
The ID of this resource.
routingTable String
Name of the routing table in use.
version Double
OSPF version this instance will be running (v2 for IPv4, v3 for IPv6).
vrf String
The VRF table this resource operates on.
___id_ number
Resource ID type (.id / name). This is an internal service field, setting a value is not required.
___path_ string
Resource path for CRUD operations. This is an internal service field, setting a value is not required.
comment string
disabled boolean
domainId string
MPLS-related parameter.
domainTag number
if set, then used in route redistribution (as route-tag in all external LSAs generated by this router), and in route calculation (all external LSAs having this route tag are ignored). Needed for interoperability with older Cisco systems. By default not set.
inFilterChain string
name of the routing filter chain used for incoming prefixes
mplsTeAddress string
the area used for MPLS traffic engineering.
mplsTeArea string
the area used for MPLS traffic engineering.
name string
originateDefault string
Specifies default route (0.0.0.0/0) distribution method.
outFilterChain string
name of the routing filter chain used for outgoing prefixes filtering.
outFilterSelect string
name of the routing filter select chain, used for output selection.
redistributes string[]
Enable redistribution of specific route types.
routerId string
OSPF Router ID. Can be set explicitly as an IP address, or as the name of the router-id instance.
routingOspfInstanceId string
The ID of this resource.
routingTable string
Name of the routing table in use.
version number
OSPF version this instance will be running (v2 for IPv4, v3 for IPv6).
vrf string
The VRF table this resource operates on.
___id_ float
Resource ID type (.id / name). This is an internal service field, setting a value is not required.
___path_ str
Resource path for CRUD operations. This is an internal service field, setting a value is not required.
comment str
disabled bool
domain_id str
MPLS-related parameter.
domain_tag float
if set, then used in route redistribution (as route-tag in all external LSAs generated by this router), and in route calculation (all external LSAs having this route tag are ignored). Needed for interoperability with older Cisco systems. By default not set.
in_filter_chain str
name of the routing filter chain used for incoming prefixes
mpls_te_address str
the area used for MPLS traffic engineering.
mpls_te_area str
the area used for MPLS traffic engineering.
name str
originate_default str
Specifies default route (0.0.0.0/0) distribution method.
out_filter_chain str
name of the routing filter chain used for outgoing prefixes filtering.
out_filter_select str
name of the routing filter select chain, used for output selection.
redistributes Sequence[str]
Enable redistribution of specific route types.
router_id str
OSPF Router ID. Can be set explicitly as an IP address, or as the name of the router-id instance.
routing_ospf_instance_id str
The ID of this resource.
routing_table str
Name of the routing table in use.
version float
OSPF version this instance will be running (v2 for IPv4, v3 for IPv6).
vrf str
The VRF table this resource operates on.
___id_ Number
Resource ID type (.id / name). This is an internal service field, setting a value is not required.
___path_ String
Resource path for CRUD operations. This is an internal service field, setting a value is not required.
comment String
disabled Boolean
domainId String
MPLS-related parameter.
domainTag Number
if set, then used in route redistribution (as route-tag in all external LSAs generated by this router), and in route calculation (all external LSAs having this route tag are ignored). Needed for interoperability with older Cisco systems. By default not set.
inFilterChain String
name of the routing filter chain used for incoming prefixes
mplsTeAddress String
the area used for MPLS traffic engineering.
mplsTeArea String
the area used for MPLS traffic engineering.
name String
originateDefault String
Specifies default route (0.0.0.0/0) distribution method.
outFilterChain String
name of the routing filter chain used for outgoing prefixes filtering.
outFilterSelect String
name of the routing filter select chain, used for output selection.
redistributes List<String>
Enable redistribution of specific route types.
routerId String
OSPF Router ID. Can be set explicitly as an IP address, or as the name of the router-id instance.
routingOspfInstanceId String
The ID of this resource.
routingTable String
Name of the routing table in use.
version Number
OSPF version this instance will be running (v2 for IPv4, v3 for IPv6).
vrf String
The VRF table this resource operates on.

Outputs

All input properties are implicitly available as output properties. Additionally, the RoutingOspfInstance resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Inactive bool
Id string
The provider-assigned unique ID for this managed resource.
Inactive bool
id String
The provider-assigned unique ID for this managed resource.
inactive Boolean
id string
The provider-assigned unique ID for this managed resource.
inactive boolean
id str
The provider-assigned unique ID for this managed resource.
inactive bool
id String
The provider-assigned unique ID for this managed resource.
inactive Boolean

Look up Existing RoutingOspfInstance Resource

Get an existing RoutingOspfInstance resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: RoutingOspfInstanceState, opts?: CustomResourceOptions): RoutingOspfInstance
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        ___id_: Optional[float] = None,
        ___path_: Optional[str] = None,
        comment: Optional[str] = None,
        disabled: Optional[bool] = None,
        domain_id: Optional[str] = None,
        domain_tag: Optional[float] = None,
        in_filter_chain: Optional[str] = None,
        inactive: Optional[bool] = None,
        mpls_te_address: Optional[str] = None,
        mpls_te_area: Optional[str] = None,
        name: Optional[str] = None,
        originate_default: Optional[str] = None,
        out_filter_chain: Optional[str] = None,
        out_filter_select: Optional[str] = None,
        redistributes: Optional[Sequence[str]] = None,
        router_id: Optional[str] = None,
        routing_ospf_instance_id: Optional[str] = None,
        routing_table: Optional[str] = None,
        version: Optional[float] = None,
        vrf: Optional[str] = None) -> RoutingOspfInstance
func GetRoutingOspfInstance(ctx *Context, name string, id IDInput, state *RoutingOspfInstanceState, opts ...ResourceOption) (*RoutingOspfInstance, error)
public static RoutingOspfInstance Get(string name, Input<string> id, RoutingOspfInstanceState? state, CustomResourceOptions? opts = null)
public static RoutingOspfInstance get(String name, Output<String> id, RoutingOspfInstanceState state, CustomResourceOptions options)
resources:  _:    type: routeros:RoutingOspfInstance    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Comment string
Disabled bool
DomainId string
MPLS-related parameter.
DomainTag double
if set, then used in route redistribution (as route-tag in all external LSAs generated by this router), and in route calculation (all external LSAs having this route tag are ignored). Needed for interoperability with older Cisco systems. By default not set.
InFilterChain string
name of the routing filter chain used for incoming prefixes
Inactive bool
MplsTeAddress string
the area used for MPLS traffic engineering.
MplsTeArea string
the area used for MPLS traffic engineering.
Name string
OriginateDefault string
Specifies default route (0.0.0.0/0) distribution method.
OutFilterChain string
name of the routing filter chain used for outgoing prefixes filtering.
OutFilterSelect string
name of the routing filter select chain, used for output selection.
Redistributes List<string>
Enable redistribution of specific route types.
RouterId string
OSPF Router ID. Can be set explicitly as an IP address, or as the name of the router-id instance.
RoutingOspfInstanceId string
The ID of this resource.
RoutingTable string
Name of the routing table in use.
Version double
OSPF version this instance will be running (v2 for IPv4, v3 for IPv6).
Vrf string
The VRF table this resource operates on.
___id_ double
Resource ID type (.id / name). This is an internal service field, setting a value is not required.
___path_ string
Resource path for CRUD operations. This is an internal service field, setting a value is not required.
Comment string
Disabled bool
DomainId string
MPLS-related parameter.
DomainTag float64
if set, then used in route redistribution (as route-tag in all external LSAs generated by this router), and in route calculation (all external LSAs having this route tag are ignored). Needed for interoperability with older Cisco systems. By default not set.
InFilterChain string
name of the routing filter chain used for incoming prefixes
Inactive bool
MplsTeAddress string
the area used for MPLS traffic engineering.
MplsTeArea string
the area used for MPLS traffic engineering.
Name string
OriginateDefault string
Specifies default route (0.0.0.0/0) distribution method.
OutFilterChain string
name of the routing filter chain used for outgoing prefixes filtering.
OutFilterSelect string
name of the routing filter select chain, used for output selection.
Redistributes []string
Enable redistribution of specific route types.
RouterId string
OSPF Router ID. Can be set explicitly as an IP address, or as the name of the router-id instance.
RoutingOspfInstanceId string
The ID of this resource.
RoutingTable string
Name of the routing table in use.
Version float64
OSPF version this instance will be running (v2 for IPv4, v3 for IPv6).
Vrf string
The VRF table this resource operates on.
___id_ float64
Resource ID type (.id / name). This is an internal service field, setting a value is not required.
___path_ string
Resource path for CRUD operations. This is an internal service field, setting a value is not required.
___id_ Double
Resource ID type (.id / name). This is an internal service field, setting a value is not required.
___path_ String
Resource path for CRUD operations. This is an internal service field, setting a value is not required.
comment String
disabled Boolean
domainId String
MPLS-related parameter.
domainTag Double
if set, then used in route redistribution (as route-tag in all external LSAs generated by this router), and in route calculation (all external LSAs having this route tag are ignored). Needed for interoperability with older Cisco systems. By default not set.
inFilterChain String
name of the routing filter chain used for incoming prefixes
inactive Boolean
mplsTeAddress String
the area used for MPLS traffic engineering.
mplsTeArea String
the area used for MPLS traffic engineering.
name String
originateDefault String
Specifies default route (0.0.0.0/0) distribution method.
outFilterChain String
name of the routing filter chain used for outgoing prefixes filtering.
outFilterSelect String
name of the routing filter select chain, used for output selection.
redistributes List<String>
Enable redistribution of specific route types.
routerId String
OSPF Router ID. Can be set explicitly as an IP address, or as the name of the router-id instance.
routingOspfInstanceId String
The ID of this resource.
routingTable String
Name of the routing table in use.
version Double
OSPF version this instance will be running (v2 for IPv4, v3 for IPv6).
vrf String
The VRF table this resource operates on.
___id_ number
Resource ID type (.id / name). This is an internal service field, setting a value is not required.
___path_ string
Resource path for CRUD operations. This is an internal service field, setting a value is not required.
comment string
disabled boolean
domainId string
MPLS-related parameter.
domainTag number
if set, then used in route redistribution (as route-tag in all external LSAs generated by this router), and in route calculation (all external LSAs having this route tag are ignored). Needed for interoperability with older Cisco systems. By default not set.
inFilterChain string
name of the routing filter chain used for incoming prefixes
inactive boolean
mplsTeAddress string
the area used for MPLS traffic engineering.
mplsTeArea string
the area used for MPLS traffic engineering.
name string
originateDefault string
Specifies default route (0.0.0.0/0) distribution method.
outFilterChain string
name of the routing filter chain used for outgoing prefixes filtering.
outFilterSelect string
name of the routing filter select chain, used for output selection.
redistributes string[]
Enable redistribution of specific route types.
routerId string
OSPF Router ID. Can be set explicitly as an IP address, or as the name of the router-id instance.
routingOspfInstanceId string
The ID of this resource.
routingTable string
Name of the routing table in use.
version number
OSPF version this instance will be running (v2 for IPv4, v3 for IPv6).
vrf string
The VRF table this resource operates on.
___id_ float
Resource ID type (.id / name). This is an internal service field, setting a value is not required.
___path_ str
Resource path for CRUD operations. This is an internal service field, setting a value is not required.
comment str
disabled bool
domain_id str
MPLS-related parameter.
domain_tag float
if set, then used in route redistribution (as route-tag in all external LSAs generated by this router), and in route calculation (all external LSAs having this route tag are ignored). Needed for interoperability with older Cisco systems. By default not set.
in_filter_chain str
name of the routing filter chain used for incoming prefixes
inactive bool
mpls_te_address str
the area used for MPLS traffic engineering.
mpls_te_area str
the area used for MPLS traffic engineering.
name str
originate_default str
Specifies default route (0.0.0.0/0) distribution method.
out_filter_chain str
name of the routing filter chain used for outgoing prefixes filtering.
out_filter_select str
name of the routing filter select chain, used for output selection.
redistributes Sequence[str]
Enable redistribution of specific route types.
router_id str
OSPF Router ID. Can be set explicitly as an IP address, or as the name of the router-id instance.
routing_ospf_instance_id str
The ID of this resource.
routing_table str
Name of the routing table in use.
version float
OSPF version this instance will be running (v2 for IPv4, v3 for IPv6).
vrf str
The VRF table this resource operates on.
___id_ Number
Resource ID type (.id / name). This is an internal service field, setting a value is not required.
___path_ String
Resource path for CRUD operations. This is an internal service field, setting a value is not required.
comment String
disabled Boolean
domainId String
MPLS-related parameter.
domainTag Number
if set, then used in route redistribution (as route-tag in all external LSAs generated by this router), and in route calculation (all external LSAs having this route tag are ignored). Needed for interoperability with older Cisco systems. By default not set.
inFilterChain String
name of the routing filter chain used for incoming prefixes
inactive Boolean
mplsTeAddress String
the area used for MPLS traffic engineering.
mplsTeArea String
the area used for MPLS traffic engineering.
name String
originateDefault String
Specifies default route (0.0.0.0/0) distribution method.
outFilterChain String
name of the routing filter chain used for outgoing prefixes filtering.
outFilterSelect String
name of the routing filter select chain, used for output selection.
redistributes List<String>
Enable redistribution of specific route types.
routerId String
OSPF Router ID. Can be set explicitly as an IP address, or as the name of the router-id instance.
routingOspfInstanceId String
The ID of this resource.
routingTable String
Name of the routing table in use.
version Number
OSPF version this instance will be running (v2 for IPv4, v3 for IPv6).
vrf String
The VRF table this resource operates on.

Import

#The ID can be found via API or the terminal

#The command for the terminal is -> /routing/ospf/instance/print show-ids

$ pulumi import routeros:index/routingOspfInstance:RoutingOspfInstance test_routing_ospf_instance "*0"
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
routeros terraform-routeros/terraform-provider-routeros
License
Notes
This Pulumi package is based on the routeros Terraform Provider.