iosxe.Ospf
Explore with Pulumi AI
This resource can manage the OSPF configuration.
Example Usage
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.iosxe.Ospf;
import com.pulumi.iosxe.OspfArgs;
import com.pulumi.iosxe.inputs.OspfAreaArgs;
import com.pulumi.iosxe.inputs.OspfNeighborArgs;
import com.pulumi.iosxe.inputs.OspfNetworkArgs;
import com.pulumi.iosxe.inputs.OspfSummaryAddressArgs;
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 example = new Ospf("example", OspfArgs.builder()
.areas(OspfAreaArgs.builder()
.area_id("5")
.authentication_message_digest(true)
.nssa(true)
.nssa_default_information_originate(true)
.nssa_default_information_originate_metric(100)
.nssa_default_information_originate_metric_type(1)
.nssa_no_redistribution(true)
.nssa_no_summary(true)
.build())
.bfdAllInterfaces(true)
.defaultInformationOriginate(true)
.defaultInformationOriginateAlways(true)
.defaultMetric(21)
.distance(120)
.domainTag(10)
.neighbors(OspfNeighborArgs.builder()
.cost(100)
.ip("2.2.2.2")
.priority(10)
.build())
.networks(OspfNetworkArgs.builder()
.area("0")
.ip("3.3.3.0")
.wildcard("0.0.0.255")
.build())
.passiveInterfaceDefault(true)
.priority(100)
.processId(1)
.routerId("1.2.3.4")
.shutdown(false)
.summaryAddresses(OspfSummaryAddressArgs.builder()
.ip("3.3.3.0")
.mask("255.255.255.0")
.build())
.build());
}
}
Coming soon!
Coming soon!
resources:
example:
type: iosxe:Ospf
properties:
areas:
- area_id: '5'
authentication_message_digest: true
nssa: true
nssa_default_information_originate: true
nssa_default_information_originate_metric: 100
nssa_default_information_originate_metric_type: 1
nssa_no_redistribution: true
nssa_no_summary: true
bfdAllInterfaces: true
defaultInformationOriginate: true
defaultInformationOriginateAlways: true
defaultMetric: 21
distance: 120
domainTag: 10
neighbors:
- cost: 100
ip: 2.2.2.2
priority: 10
networks:
- area: '0'
ip: 3.3.3.0
wildcard: 0.0.0.255
passiveInterfaceDefault: true
priority: 100
processId: 1
routerId: 1.2.3.4
shutdown: false
summaryAddresses:
- ip: 3.3.3.0
mask: 255.255.255.0
Create Ospf Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Ospf(name: string, args: OspfArgs, opts?: CustomResourceOptions);
@overload
def Ospf(resource_name: str,
args: OspfArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Ospf(resource_name: str,
opts: Optional[ResourceOptions] = None,
process_id: Optional[int] = None,
domain_tag: Optional[int] = None,
default_information_originate_always: Optional[bool] = None,
mpls_ldp_sync: Optional[bool] = None,
neighbors: Optional[Sequence[OspfNeighborArgs]] = None,
delete_mode: Optional[str] = None,
device: Optional[str] = None,
distance: Optional[int] = None,
areas: Optional[Sequence[OspfAreaArgs]] = None,
summary_addresses: Optional[Sequence[OspfSummaryAddressArgs]] = None,
default_information_originate: Optional[bool] = None,
default_metric: Optional[int] = None,
networks: Optional[Sequence[OspfNetworkArgs]] = None,
passive_interface_default: Optional[bool] = None,
priority: Optional[int] = None,
bfd_all_interfaces: Optional[bool] = None,
router_id: Optional[str] = None,
shutdown: Optional[bool] = None,
mpls_ldp_autoconfig: Optional[bool] = None)
func NewOspf(ctx *Context, name string, args OspfArgs, opts ...ResourceOption) (*Ospf, error)
public Ospf(string name, OspfArgs args, CustomResourceOptions? opts = null)
type: iosxe:Ospf
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args OspfArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args OspfArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args OspfArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OspfArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OspfArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var ospfResource = new Iosxe.Ospf("ospfResource", new()
{
ProcessId = 0,
DomainTag = 0,
DefaultInformationOriginateAlways = false,
MplsLdpSync = false,
Neighbors = new[]
{
new Iosxe.Inputs.OspfNeighborArgs
{
Ip = "string",
Cost = 0,
Priority = 0,
},
},
DeleteMode = "string",
Device = "string",
Distance = 0,
Areas = new[]
{
new Iosxe.Inputs.OspfAreaArgs
{
AreaId = "string",
AuthenticationMessageDigest = false,
Nssa = false,
NssaDefaultInformationOriginate = false,
NssaDefaultInformationOriginateMetric = 0,
NssaDefaultInformationOriginateMetricType = 0,
NssaNoRedistribution = false,
NssaNoSummary = false,
},
},
SummaryAddresses = new[]
{
new Iosxe.Inputs.OspfSummaryAddressArgs
{
Ip = "string",
Mask = "string",
},
},
DefaultInformationOriginate = false,
DefaultMetric = 0,
Networks = new[]
{
new Iosxe.Inputs.OspfNetworkArgs
{
Ip = "string",
Area = "string",
Wildcard = "string",
},
},
PassiveInterfaceDefault = false,
Priority = 0,
BfdAllInterfaces = false,
RouterId = "string",
Shutdown = false,
MplsLdpAutoconfig = false,
});
example, err := iosxe.NewOspf(ctx, "ospfResource", &iosxe.OspfArgs{
ProcessId: pulumi.Int(0),
DomainTag: pulumi.Int(0),
DefaultInformationOriginateAlways: pulumi.Bool(false),
MplsLdpSync: pulumi.Bool(false),
Neighbors: iosxe.OspfNeighborArray{
&iosxe.OspfNeighborArgs{
Ip: pulumi.String("string"),
Cost: pulumi.Int(0),
Priority: pulumi.Int(0),
},
},
DeleteMode: pulumi.String("string"),
Device: pulumi.String("string"),
Distance: pulumi.Int(0),
Areas: iosxe.OspfAreaArray{
&iosxe.OspfAreaArgs{
AreaId: pulumi.String("string"),
AuthenticationMessageDigest: pulumi.Bool(false),
Nssa: pulumi.Bool(false),
NssaDefaultInformationOriginate: pulumi.Bool(false),
NssaDefaultInformationOriginateMetric: pulumi.Int(0),
NssaDefaultInformationOriginateMetricType: pulumi.Int(0),
NssaNoRedistribution: pulumi.Bool(false),
NssaNoSummary: pulumi.Bool(false),
},
},
SummaryAddresses: iosxe.OspfSummaryAddressArray{
&iosxe.OspfSummaryAddressArgs{
Ip: pulumi.String("string"),
Mask: pulumi.String("string"),
},
},
DefaultInformationOriginate: pulumi.Bool(false),
DefaultMetric: pulumi.Int(0),
Networks: iosxe.OspfNetworkArray{
&iosxe.OspfNetworkArgs{
Ip: pulumi.String("string"),
Area: pulumi.String("string"),
Wildcard: pulumi.String("string"),
},
},
PassiveInterfaceDefault: pulumi.Bool(false),
Priority: pulumi.Int(0),
BfdAllInterfaces: pulumi.Bool(false),
RouterId: pulumi.String("string"),
Shutdown: pulumi.Bool(false),
MplsLdpAutoconfig: pulumi.Bool(false),
})
var ospfResource = new Ospf("ospfResource", OspfArgs.builder()
.processId(0)
.domainTag(0)
.defaultInformationOriginateAlways(false)
.mplsLdpSync(false)
.neighbors(OspfNeighborArgs.builder()
.ip("string")
.cost(0)
.priority(0)
.build())
.deleteMode("string")
.device("string")
.distance(0)
.areas(OspfAreaArgs.builder()
.areaId("string")
.authenticationMessageDigest(false)
.nssa(false)
.nssaDefaultInformationOriginate(false)
.nssaDefaultInformationOriginateMetric(0)
.nssaDefaultInformationOriginateMetricType(0)
.nssaNoRedistribution(false)
.nssaNoSummary(false)
.build())
.summaryAddresses(OspfSummaryAddressArgs.builder()
.ip("string")
.mask("string")
.build())
.defaultInformationOriginate(false)
.defaultMetric(0)
.networks(OspfNetworkArgs.builder()
.ip("string")
.area("string")
.wildcard("string")
.build())
.passiveInterfaceDefault(false)
.priority(0)
.bfdAllInterfaces(false)
.routerId("string")
.shutdown(false)
.mplsLdpAutoconfig(false)
.build());
ospf_resource = iosxe.Ospf("ospfResource",
process_id=0,
domain_tag=0,
default_information_originate_always=False,
mpls_ldp_sync=False,
neighbors=[{
"ip": "string",
"cost": 0,
"priority": 0,
}],
delete_mode="string",
device="string",
distance=0,
areas=[{
"area_id": "string",
"authentication_message_digest": False,
"nssa": False,
"nssa_default_information_originate": False,
"nssa_default_information_originate_metric": 0,
"nssa_default_information_originate_metric_type": 0,
"nssa_no_redistribution": False,
"nssa_no_summary": False,
}],
summary_addresses=[{
"ip": "string",
"mask": "string",
}],
default_information_originate=False,
default_metric=0,
networks=[{
"ip": "string",
"area": "string",
"wildcard": "string",
}],
passive_interface_default=False,
priority=0,
bfd_all_interfaces=False,
router_id="string",
shutdown=False,
mpls_ldp_autoconfig=False)
const ospfResource = new iosxe.Ospf("ospfResource", {
processId: 0,
domainTag: 0,
defaultInformationOriginateAlways: false,
mplsLdpSync: false,
neighbors: [{
ip: "string",
cost: 0,
priority: 0,
}],
deleteMode: "string",
device: "string",
distance: 0,
areas: [{
areaId: "string",
authenticationMessageDigest: false,
nssa: false,
nssaDefaultInformationOriginate: false,
nssaDefaultInformationOriginateMetric: 0,
nssaDefaultInformationOriginateMetricType: 0,
nssaNoRedistribution: false,
nssaNoSummary: false,
}],
summaryAddresses: [{
ip: "string",
mask: "string",
}],
defaultInformationOriginate: false,
defaultMetric: 0,
networks: [{
ip: "string",
area: "string",
wildcard: "string",
}],
passiveInterfaceDefault: false,
priority: 0,
bfdAllInterfaces: false,
routerId: "string",
shutdown: false,
mplsLdpAutoconfig: false,
});
type: iosxe:Ospf
properties:
areas:
- areaId: string
authenticationMessageDigest: false
nssa: false
nssaDefaultInformationOriginate: false
nssaDefaultInformationOriginateMetric: 0
nssaDefaultInformationOriginateMetricType: 0
nssaNoRedistribution: false
nssaNoSummary: false
bfdAllInterfaces: false
defaultInformationOriginate: false
defaultInformationOriginateAlways: false
defaultMetric: 0
deleteMode: string
device: string
distance: 0
domainTag: 0
mplsLdpAutoconfig: false
mplsLdpSync: false
neighbors:
- cost: 0
ip: string
priority: 0
networks:
- area: string
ip: string
wildcard: string
passiveInterfaceDefault: false
priority: 0
processId: 0
routerId: string
shutdown: false
summaryAddresses:
- ip: string
mask: string
Ospf 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 Ospf resource accepts the following input properties:
- Process
Id int - Process ID - Range:
1
-65535
- Areas
List<Lbrlabs.
Pulumi Package. Iosxe. Inputs. Ospf 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 - Range:
1
-16777214
- Delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- Device string
- A device name from the provider configuration.
- Distance int
- Administrative distance - Range:
1
-255
- Domain
Tag int - OSPF domain-tag - Range:
1
-4294967295
- Mpls
Ldp boolAutoconfig - Configure LDP automatic configuration
- Mpls
Ldp boolSync - Configure LDP-IGP Synchronization
- Neighbors
List<Lbrlabs.
Pulumi Package. Iosxe. Inputs. Ospf Neighbor> - Specify a neighbor router
- Networks
List<Lbrlabs.
Pulumi Package. Iosxe. Inputs. Ospf Network> - Enable routing on an IP network
- Passive
Interface boolDefault - Suppress routing updates on all interfaces
- Priority int
- OSPF topology priority - Range:
0
-127
- Router
Id string - Override configured router identifier (peers will reset)
- Shutdown bool
- Shutdown the OSPF protocol under the current instance
- Summary
Addresses List<Lbrlabs.Pulumi Package. Iosxe. Inputs. Ospf Summary Address> - Configure IP address summaries
- Process
Id int - Process ID - Range:
1
-65535
- Areas
[]Ospf
Area Args - 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 - Range:
1
-16777214
- Delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- Device string
- A device name from the provider configuration.
- Distance int
- Administrative distance - Range:
1
-255
- Domain
Tag int - OSPF domain-tag - Range:
1
-4294967295
- Mpls
Ldp boolAutoconfig - Configure LDP automatic configuration
- Mpls
Ldp boolSync - Configure LDP-IGP Synchronization
- Neighbors
[]Ospf
Neighbor Args - Specify a neighbor router
- Networks
[]Ospf
Network Args - Enable routing on an IP network
- Passive
Interface boolDefault - Suppress routing updates on all interfaces
- Priority int
- OSPF topology priority - Range:
0
-127
- Router
Id string - Override configured router identifier (peers will reset)
- Shutdown bool
- Shutdown the OSPF protocol under the current instance
- Summary
Addresses []OspfSummary Address Args - Configure IP address summaries
- process
Id Integer - Process ID - Range:
1
-65535
- areas
List<Ospf
Area> - OSPF area parameters
- bfd
All BooleanInterfaces - Enable BFD on all interfaces
- default
Information BooleanOriginate - Distribute a default route
- default
Information BooleanOriginate Always - Always advertise default route
- default
Metric Integer - Set metric of redistributed routes - Range:
1
-16777214
- delete
Mode String - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device String
- A device name from the provider configuration.
- distance Integer
- Administrative distance - Range:
1
-255
- domain
Tag Integer - OSPF domain-tag - Range:
1
-4294967295
- mpls
Ldp BooleanAutoconfig - Configure LDP automatic configuration
- mpls
Ldp BooleanSync - Configure LDP-IGP Synchronization
- neighbors
List<Ospf
Neighbor> - Specify a neighbor router
- networks
List<Ospf
Network> - Enable routing on an IP network
- passive
Interface BooleanDefault - Suppress routing updates on all interfaces
- priority Integer
- OSPF topology priority - Range:
0
-127
- router
Id String - Override configured router identifier (peers will reset)
- shutdown Boolean
- Shutdown the OSPF protocol under the current instance
- summary
Addresses List<OspfSummary Address> - Configure IP address summaries
- process
Id number - Process ID - Range:
1
-65535
- areas
Ospf
Area[] - OSPF area parameters
- bfd
All booleanInterfaces - Enable BFD on all interfaces
- default
Information booleanOriginate - Distribute a default route
- default
Information booleanOriginate Always - Always advertise default route
- default
Metric number - Set metric of redistributed routes - Range:
1
-16777214
- delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device string
- A device name from the provider configuration.
- distance number
- Administrative distance - Range:
1
-255
- domain
Tag number - OSPF domain-tag - Range:
1
-4294967295
- mpls
Ldp booleanAutoconfig - Configure LDP automatic configuration
- mpls
Ldp booleanSync - Configure LDP-IGP Synchronization
- neighbors
Ospf
Neighbor[] - Specify a neighbor router
- networks
Ospf
Network[] - Enable routing on an IP network
- passive
Interface booleanDefault - Suppress routing updates on all interfaces
- priority number
- OSPF topology priority - Range:
0
-127
- router
Id string - Override configured router identifier (peers will reset)
- shutdown boolean
- Shutdown the OSPF protocol under the current instance
- summary
Addresses OspfSummary Address[] - Configure IP address summaries
- process_
id int - Process ID - Range:
1
-65535
- areas
Sequence[Ospf
Area Args] - 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 - Range:
1
-16777214
- delete_
mode str - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device str
- A device name from the provider configuration.
- distance int
- Administrative distance - Range:
1
-255
- domain_
tag int - OSPF domain-tag - Range:
1
-4294967295
- mpls_
ldp_ boolautoconfig - Configure LDP automatic configuration
- mpls_
ldp_ boolsync - Configure LDP-IGP Synchronization
- neighbors
Sequence[Ospf
Neighbor Args] - Specify a neighbor router
- networks
Sequence[Ospf
Network Args] - Enable routing on an IP network
- passive_
interface_ booldefault - Suppress routing updates on all interfaces
- priority int
- OSPF topology priority - Range:
0
-127
- router_
id str - Override configured router identifier (peers will reset)
- shutdown bool
- Shutdown the OSPF protocol under the current instance
- summary_
addresses Sequence[OspfSummary Address Args] - Configure IP address summaries
- process
Id Number - Process ID - Range:
1
-65535
- areas List<Property Map>
- OSPF area parameters
- bfd
All BooleanInterfaces - Enable BFD on all interfaces
- default
Information BooleanOriginate - Distribute a default route
- default
Information BooleanOriginate Always - Always advertise default route
- default
Metric Number - Set metric of redistributed routes - Range:
1
-16777214
- delete
Mode String - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device String
- A device name from the provider configuration.
- distance Number
- Administrative distance - Range:
1
-255
- domain
Tag Number - OSPF domain-tag - Range:
1
-4294967295
- mpls
Ldp BooleanAutoconfig - Configure LDP automatic configuration
- mpls
Ldp BooleanSync - Configure LDP-IGP Synchronization
- neighbors List<Property Map>
- Specify a neighbor router
- networks List<Property Map>
- Enable routing on an IP network
- passive
Interface BooleanDefault - Suppress routing updates on all interfaces
- priority Number
- OSPF topology priority - Range:
0
-127
- router
Id String - Override configured router identifier (peers will reset)
- shutdown Boolean
- Shutdown the OSPF protocol under the current instance
- summary
Addresses List<Property Map> - Configure IP address summaries
Outputs
All input properties are implicitly available as output properties. Additionally, the Ospf resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Ospf Resource
Get an existing Ospf 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?: OspfState, opts?: CustomResourceOptions): Ospf
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
areas: Optional[Sequence[OspfAreaArgs]] = None,
bfd_all_interfaces: Optional[bool] = None,
default_information_originate: Optional[bool] = None,
default_information_originate_always: Optional[bool] = None,
default_metric: Optional[int] = None,
delete_mode: Optional[str] = None,
device: Optional[str] = None,
distance: Optional[int] = None,
domain_tag: Optional[int] = None,
mpls_ldp_autoconfig: Optional[bool] = None,
mpls_ldp_sync: Optional[bool] = None,
neighbors: Optional[Sequence[OspfNeighborArgs]] = None,
networks: Optional[Sequence[OspfNetworkArgs]] = None,
passive_interface_default: Optional[bool] = None,
priority: Optional[int] = None,
process_id: Optional[int] = None,
router_id: Optional[str] = None,
shutdown: Optional[bool] = None,
summary_addresses: Optional[Sequence[OspfSummaryAddressArgs]] = None) -> Ospf
func GetOspf(ctx *Context, name string, id IDInput, state *OspfState, opts ...ResourceOption) (*Ospf, error)
public static Ospf Get(string name, Input<string> id, OspfState? state, CustomResourceOptions? opts = null)
public static Ospf get(String name, Output<String> id, OspfState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Areas
List<Lbrlabs.
Pulumi Package. Iosxe. Inputs. Ospf 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 - Range:
1
-16777214
- Delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- Device string
- A device name from the provider configuration.
- Distance int
- Administrative distance - Range:
1
-255
- Domain
Tag int - OSPF domain-tag - Range:
1
-4294967295
- Mpls
Ldp boolAutoconfig - Configure LDP automatic configuration
- Mpls
Ldp boolSync - Configure LDP-IGP Synchronization
- Neighbors
List<Lbrlabs.
Pulumi Package. Iosxe. Inputs. Ospf Neighbor> - Specify a neighbor router
- Networks
List<Lbrlabs.
Pulumi Package. Iosxe. Inputs. Ospf Network> - Enable routing on an IP network
- Passive
Interface boolDefault - Suppress routing updates on all interfaces
- Priority int
- OSPF topology priority - Range:
0
-127
- Process
Id int - Process ID - Range:
1
-65535
- Router
Id string - Override configured router identifier (peers will reset)
- Shutdown bool
- Shutdown the OSPF protocol under the current instance
- Summary
Addresses List<Lbrlabs.Pulumi Package. Iosxe. Inputs. Ospf Summary Address> - Configure IP address summaries
- Areas
[]Ospf
Area Args - 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 - Range:
1
-16777214
- Delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- Device string
- A device name from the provider configuration.
- Distance int
- Administrative distance - Range:
1
-255
- Domain
Tag int - OSPF domain-tag - Range:
1
-4294967295
- Mpls
Ldp boolAutoconfig - Configure LDP automatic configuration
- Mpls
Ldp boolSync - Configure LDP-IGP Synchronization
- Neighbors
[]Ospf
Neighbor Args - Specify a neighbor router
- Networks
[]Ospf
Network Args - Enable routing on an IP network
- Passive
Interface boolDefault - Suppress routing updates on all interfaces
- Priority int
- OSPF topology priority - Range:
0
-127
- Process
Id int - Process ID - Range:
1
-65535
- Router
Id string - Override configured router identifier (peers will reset)
- Shutdown bool
- Shutdown the OSPF protocol under the current instance
- Summary
Addresses []OspfSummary Address Args - Configure IP address summaries
- areas
List<Ospf
Area> - OSPF area parameters
- bfd
All BooleanInterfaces - Enable BFD on all interfaces
- default
Information BooleanOriginate - Distribute a default route
- default
Information BooleanOriginate Always - Always advertise default route
- default
Metric Integer - Set metric of redistributed routes - Range:
1
-16777214
- delete
Mode String - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device String
- A device name from the provider configuration.
- distance Integer
- Administrative distance - Range:
1
-255
- domain
Tag Integer - OSPF domain-tag - Range:
1
-4294967295
- mpls
Ldp BooleanAutoconfig - Configure LDP automatic configuration
- mpls
Ldp BooleanSync - Configure LDP-IGP Synchronization
- neighbors
List<Ospf
Neighbor> - Specify a neighbor router
- networks
List<Ospf
Network> - Enable routing on an IP network
- passive
Interface BooleanDefault - Suppress routing updates on all interfaces
- priority Integer
- OSPF topology priority - Range:
0
-127
- process
Id Integer - Process ID - Range:
1
-65535
- router
Id String - Override configured router identifier (peers will reset)
- shutdown Boolean
- Shutdown the OSPF protocol under the current instance
- summary
Addresses List<OspfSummary Address> - Configure IP address summaries
- areas
Ospf
Area[] - OSPF area parameters
- bfd
All booleanInterfaces - Enable BFD on all interfaces
- default
Information booleanOriginate - Distribute a default route
- default
Information booleanOriginate Always - Always advertise default route
- default
Metric number - Set metric of redistributed routes - Range:
1
-16777214
- delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device string
- A device name from the provider configuration.
- distance number
- Administrative distance - Range:
1
-255
- domain
Tag number - OSPF domain-tag - Range:
1
-4294967295
- mpls
Ldp booleanAutoconfig - Configure LDP automatic configuration
- mpls
Ldp booleanSync - Configure LDP-IGP Synchronization
- neighbors
Ospf
Neighbor[] - Specify a neighbor router
- networks
Ospf
Network[] - Enable routing on an IP network
- passive
Interface booleanDefault - Suppress routing updates on all interfaces
- priority number
- OSPF topology priority - Range:
0
-127
- process
Id number - Process ID - Range:
1
-65535
- router
Id string - Override configured router identifier (peers will reset)
- shutdown boolean
- Shutdown the OSPF protocol under the current instance
- summary
Addresses OspfSummary Address[] - Configure IP address summaries
- areas
Sequence[Ospf
Area Args] - 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 - Range:
1
-16777214
- delete_
mode str - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device str
- A device name from the provider configuration.
- distance int
- Administrative distance - Range:
1
-255
- domain_
tag int - OSPF domain-tag - Range:
1
-4294967295
- mpls_
ldp_ boolautoconfig - Configure LDP automatic configuration
- mpls_
ldp_ boolsync - Configure LDP-IGP Synchronization
- neighbors
Sequence[Ospf
Neighbor Args] - Specify a neighbor router
- networks
Sequence[Ospf
Network Args] - Enable routing on an IP network
- passive_
interface_ booldefault - Suppress routing updates on all interfaces
- priority int
- OSPF topology priority - Range:
0
-127
- process_
id int - Process ID - Range:
1
-65535
- router_
id str - Override configured router identifier (peers will reset)
- shutdown bool
- Shutdown the OSPF protocol under the current instance
- summary_
addresses Sequence[OspfSummary Address Args] - Configure IP address summaries
- areas List<Property Map>
- OSPF area parameters
- bfd
All BooleanInterfaces - Enable BFD on all interfaces
- default
Information BooleanOriginate - Distribute a default route
- default
Information BooleanOriginate Always - Always advertise default route
- default
Metric Number - Set metric of redistributed routes - Range:
1
-16777214
- delete
Mode String - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device String
- A device name from the provider configuration.
- distance Number
- Administrative distance - Range:
1
-255
- domain
Tag Number - OSPF domain-tag - Range:
1
-4294967295
- mpls
Ldp BooleanAutoconfig - Configure LDP automatic configuration
- mpls
Ldp BooleanSync - Configure LDP-IGP Synchronization
- neighbors List<Property Map>
- Specify a neighbor router
- networks List<Property Map>
- Enable routing on an IP network
- passive
Interface BooleanDefault - Suppress routing updates on all interfaces
- priority Number
- OSPF topology priority - Range:
0
-127
- process
Id Number - Process ID - Range:
1
-65535
- router
Id String - Override configured router identifier (peers will reset)
- shutdown Boolean
- Shutdown the OSPF protocol under the current instance
- summary
Addresses List<Property Map> - Configure IP address summaries
Supporting Types
OspfArea, OspfAreaArgs
- area
Id String - authentication
Message BooleanDigest - nssa Boolean
- nssa
Default BooleanInformation Originate - nssa
Default IntegerInformation Originate Metric - nssa
Default IntegerInformation Originate Metric Type - nssa
No BooleanRedistribution - nssa
No BooleanSummary
- area
Id string - authentication
Message booleanDigest - nssa boolean
- nssa
Default booleanInformation Originate - nssa
Default numberInformation Originate Metric - nssa
Default numberInformation Originate Metric Type - nssa
No booleanRedistribution - nssa
No booleanSummary
- area
Id String - authentication
Message BooleanDigest - nssa Boolean
- nssa
Default BooleanInformation Originate - nssa
Default NumberInformation Originate Metric - nssa
Default NumberInformation Originate Metric Type - nssa
No BooleanRedistribution - nssa
No BooleanSummary
OspfNeighbor, OspfNeighborArgs
OspfNetwork, OspfNetworkArgs
OspfSummaryAddress, OspfSummaryAddressArgs
Import
$ pulumi import iosxe:index/ospf:Ospf example "Cisco-IOS-XE-native:native/router/Cisco-IOS-XE-ospf:router-ospf/ospf/process-id=1"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- iosxe lbrlabs/pulumi-iosxe
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
iosxe
Terraform Provider.