nxos.OspfInterface
Explore with Pulumi AI
This resource can manage the OSPF interface configuration.
- API Documentation: ospfIf
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nxos = Lbrlabs.PulumiPackage.Nxos;
return await Deployment.RunAsync(() =>
{
var example = new Nxos.OspfInterface("example", new()
{
AdvertiseSecondaries = false,
Area = "0.0.0.10",
Bfd = "disabled",
Cost = 1000,
DeadInterval = 60,
HelloInterval = 15,
InstanceName = "OSPF1",
InterfaceId = "eth1/10",
NetworkType = "p2p",
Passive = "enabled",
Priority = 10,
VrfName = "VRF1",
});
});
package main
import (
"github.com/lbrlabs/pulumi-nxos/sdk/go/nxos"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := nxos.NewOspfInterface(ctx, "example", &nxos.OspfInterfaceArgs{
AdvertiseSecondaries: pulumi.Bool(false),
Area: pulumi.String("0.0.0.10"),
Bfd: pulumi.String("disabled"),
Cost: pulumi.Int(1000),
DeadInterval: pulumi.Int(60),
HelloInterval: pulumi.Int(15),
InstanceName: pulumi.String("OSPF1"),
InterfaceId: pulumi.String("eth1/10"),
NetworkType: pulumi.String("p2p"),
Passive: pulumi.String("enabled"),
Priority: pulumi.Int(10),
VrfName: pulumi.String("VRF1"),
})
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.nxos.OspfInterface;
import com.pulumi.nxos.OspfInterfaceArgs;
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 OspfInterface("example", OspfInterfaceArgs.builder()
.advertiseSecondaries(false)
.area("0.0.0.10")
.bfd("disabled")
.cost(1000)
.deadInterval(60)
.helloInterval(15)
.instanceName("OSPF1")
.interfaceId("eth1/10")
.networkType("p2p")
.passive("enabled")
.priority(10)
.vrfName("VRF1")
.build());
}
}
import pulumi
import lbrlabs_pulumi_nxos as nxos
example = nxos.OspfInterface("example",
advertise_secondaries=False,
area="0.0.0.10",
bfd="disabled",
cost=1000,
dead_interval=60,
hello_interval=15,
instance_name="OSPF1",
interface_id="eth1/10",
network_type="p2p",
passive="enabled",
priority=10,
vrf_name="VRF1")
import * as pulumi from "@pulumi/pulumi";
import * as nxos from "@lbrlabs/pulumi-nxos";
const example = new nxos.OspfInterface("example", {
advertiseSecondaries: false,
area: "0.0.0.10",
bfd: "disabled",
cost: 1000,
deadInterval: 60,
helloInterval: 15,
instanceName: "OSPF1",
interfaceId: "eth1/10",
networkType: "p2p",
passive: "enabled",
priority: 10,
vrfName: "VRF1",
});
resources:
example:
type: nxos:OspfInterface
properties:
advertiseSecondaries: false
area: 0.0.0.10
bfd: disabled
cost: 1000
deadInterval: 60
helloInterval: 15
instanceName: OSPF1
interfaceId: eth1/10
networkType: p2p
passive: enabled
priority: 10
vrfName: VRF1
Create OspfInterface Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OspfInterface(name: string, args: OspfInterfaceArgs, opts?: CustomResourceOptions);
@overload
def OspfInterface(resource_name: str,
args: OspfInterfaceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OspfInterface(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_name: Optional[str] = None,
vrf_name: Optional[str] = None,
interface_id: Optional[str] = None,
hello_interval: Optional[int] = None,
dead_interval: Optional[int] = None,
device: Optional[str] = None,
advertise_secondaries: Optional[bool] = None,
cost: Optional[int] = None,
bfd: Optional[str] = None,
network_type: Optional[str] = None,
passive: Optional[str] = None,
priority: Optional[int] = None,
area: Optional[str] = None)
func NewOspfInterface(ctx *Context, name string, args OspfInterfaceArgs, opts ...ResourceOption) (*OspfInterface, error)
public OspfInterface(string name, OspfInterfaceArgs args, CustomResourceOptions? opts = null)
public OspfInterface(String name, OspfInterfaceArgs args)
public OspfInterface(String name, OspfInterfaceArgs args, CustomResourceOptions options)
type: nxos:OspfInterface
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 OspfInterfaceArgs
- 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 OspfInterfaceArgs
- 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 OspfInterfaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OspfInterfaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OspfInterfaceArgs
- 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 ospfInterfaceResource = new Nxos.OspfInterface("ospfInterfaceResource", new()
{
InstanceName = "string",
VrfName = "string",
InterfaceId = "string",
HelloInterval = 0,
DeadInterval = 0,
Device = "string",
AdvertiseSecondaries = false,
Cost = 0,
Bfd = "string",
NetworkType = "string",
Passive = "string",
Priority = 0,
Area = "string",
});
example, err := nxos.NewOspfInterface(ctx, "ospfInterfaceResource", &nxos.OspfInterfaceArgs{
InstanceName: pulumi.String("string"),
VrfName: pulumi.String("string"),
InterfaceId: pulumi.String("string"),
HelloInterval: pulumi.Int(0),
DeadInterval: pulumi.Int(0),
Device: pulumi.String("string"),
AdvertiseSecondaries: pulumi.Bool(false),
Cost: pulumi.Int(0),
Bfd: pulumi.String("string"),
NetworkType: pulumi.String("string"),
Passive: pulumi.String("string"),
Priority: pulumi.Int(0),
Area: pulumi.String("string"),
})
var ospfInterfaceResource = new OspfInterface("ospfInterfaceResource", OspfInterfaceArgs.builder()
.instanceName("string")
.vrfName("string")
.interfaceId("string")
.helloInterval(0)
.deadInterval(0)
.device("string")
.advertiseSecondaries(false)
.cost(0)
.bfd("string")
.networkType("string")
.passive("string")
.priority(0)
.area("string")
.build());
ospf_interface_resource = nxos.OspfInterface("ospfInterfaceResource",
instance_name="string",
vrf_name="string",
interface_id="string",
hello_interval=0,
dead_interval=0,
device="string",
advertise_secondaries=False,
cost=0,
bfd="string",
network_type="string",
passive="string",
priority=0,
area="string")
const ospfInterfaceResource = new nxos.OspfInterface("ospfInterfaceResource", {
instanceName: "string",
vrfName: "string",
interfaceId: "string",
helloInterval: 0,
deadInterval: 0,
device: "string",
advertiseSecondaries: false,
cost: 0,
bfd: "string",
networkType: "string",
passive: "string",
priority: 0,
area: "string",
});
type: nxos:OspfInterface
properties:
advertiseSecondaries: false
area: string
bfd: string
cost: 0
deadInterval: 0
device: string
helloInterval: 0
instanceName: string
interfaceId: string
networkType: string
passive: string
priority: 0
vrfName: string
OspfInterface 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 OspfInterface resource accepts the following input properties:
- Instance
Name string - OSPF instance name.
- Interface
Id string - Must match first field in the output of
show intf brief
. Example:eth1/1
. - Vrf
Name string - VRF name.
- Advertise
Secondaries bool - Advertise secondary IP addresses. - Default value:
true
- Area string
- Area identifier to which a network or interface belongs in IPv4 address format. - Default value:
0.0.0.0
- Bfd string
- Bidirectional Forwarding Detection (BFD). - Choices:
unspecified
,enabled
,disabled
- Default value:unspecified
- Cost int
- Specifies the cost of interface. - Range:
0
-65535
- Default value:0
- Dead
Interval int - Dead interval, interval after which router declares that neighbor as down. - Range:
0
-65535
- Default value:0
- Device string
- A device name from the provider configuration.
- Hello
Interval int - Hello interval, interval between hello packets that OSPF sends on the interface. - Range:
0
-65535
- Default value:10
- Network
Type string - Network type. - Choices:
unspecified
,p2p
,bcast
- Default value:unspecified
- Passive string
- Passive interface control. Interface can be configured as passive or non-passive. - Choices:
unspecified
,enabled
,disabled
- Default value:unspecified
- Priority int
- Priority, used in determining the designated router on this network. - Range:
0
-255
- Default value:1
- Instance
Name string - OSPF instance name.
- Interface
Id string - Must match first field in the output of
show intf brief
. Example:eth1/1
. - Vrf
Name string - VRF name.
- Advertise
Secondaries bool - Advertise secondary IP addresses. - Default value:
true
- Area string
- Area identifier to which a network or interface belongs in IPv4 address format. - Default value:
0.0.0.0
- Bfd string
- Bidirectional Forwarding Detection (BFD). - Choices:
unspecified
,enabled
,disabled
- Default value:unspecified
- Cost int
- Specifies the cost of interface. - Range:
0
-65535
- Default value:0
- Dead
Interval int - Dead interval, interval after which router declares that neighbor as down. - Range:
0
-65535
- Default value:0
- Device string
- A device name from the provider configuration.
- Hello
Interval int - Hello interval, interval between hello packets that OSPF sends on the interface. - Range:
0
-65535
- Default value:10
- Network
Type string - Network type. - Choices:
unspecified
,p2p
,bcast
- Default value:unspecified
- Passive string
- Passive interface control. Interface can be configured as passive or non-passive. - Choices:
unspecified
,enabled
,disabled
- Default value:unspecified
- Priority int
- Priority, used in determining the designated router on this network. - Range:
0
-255
- Default value:1
- instance
Name String - OSPF instance name.
- interface
Id String - Must match first field in the output of
show intf brief
. Example:eth1/1
. - vrf
Name String - VRF name.
- advertise
Secondaries Boolean - Advertise secondary IP addresses. - Default value:
true
- area String
- Area identifier to which a network or interface belongs in IPv4 address format. - Default value:
0.0.0.0
- bfd String
- Bidirectional Forwarding Detection (BFD). - Choices:
unspecified
,enabled
,disabled
- Default value:unspecified
- cost Integer
- Specifies the cost of interface. - Range:
0
-65535
- Default value:0
- dead
Interval Integer - Dead interval, interval after which router declares that neighbor as down. - Range:
0
-65535
- Default value:0
- device String
- A device name from the provider configuration.
- hello
Interval Integer - Hello interval, interval between hello packets that OSPF sends on the interface. - Range:
0
-65535
- Default value:10
- network
Type String - Network type. - Choices:
unspecified
,p2p
,bcast
- Default value:unspecified
- passive String
- Passive interface control. Interface can be configured as passive or non-passive. - Choices:
unspecified
,enabled
,disabled
- Default value:unspecified
- priority Integer
- Priority, used in determining the designated router on this network. - Range:
0
-255
- Default value:1
- instance
Name string - OSPF instance name.
- interface
Id string - Must match first field in the output of
show intf brief
. Example:eth1/1
. - vrf
Name string - VRF name.
- advertise
Secondaries boolean - Advertise secondary IP addresses. - Default value:
true
- area string
- Area identifier to which a network or interface belongs in IPv4 address format. - Default value:
0.0.0.0
- bfd string
- Bidirectional Forwarding Detection (BFD). - Choices:
unspecified
,enabled
,disabled
- Default value:unspecified
- cost number
- Specifies the cost of interface. - Range:
0
-65535
- Default value:0
- dead
Interval number - Dead interval, interval after which router declares that neighbor as down. - Range:
0
-65535
- Default value:0
- device string
- A device name from the provider configuration.
- hello
Interval number - Hello interval, interval between hello packets that OSPF sends on the interface. - Range:
0
-65535
- Default value:10
- network
Type string - Network type. - Choices:
unspecified
,p2p
,bcast
- Default value:unspecified
- passive string
- Passive interface control. Interface can be configured as passive or non-passive. - Choices:
unspecified
,enabled
,disabled
- Default value:unspecified
- priority number
- Priority, used in determining the designated router on this network. - Range:
0
-255
- Default value:1
- instance_
name str - OSPF instance name.
- interface_
id str - Must match first field in the output of
show intf brief
. Example:eth1/1
. - vrf_
name str - VRF name.
- advertise_
secondaries bool - Advertise secondary IP addresses. - Default value:
true
- area str
- Area identifier to which a network or interface belongs in IPv4 address format. - Default value:
0.0.0.0
- bfd str
- Bidirectional Forwarding Detection (BFD). - Choices:
unspecified
,enabled
,disabled
- Default value:unspecified
- cost int
- Specifies the cost of interface. - Range:
0
-65535
- Default value:0
- dead_
interval int - Dead interval, interval after which router declares that neighbor as down. - Range:
0
-65535
- Default value:0
- device str
- A device name from the provider configuration.
- hello_
interval int - Hello interval, interval between hello packets that OSPF sends on the interface. - Range:
0
-65535
- Default value:10
- network_
type str - Network type. - Choices:
unspecified
,p2p
,bcast
- Default value:unspecified
- passive str
- Passive interface control. Interface can be configured as passive or non-passive. - Choices:
unspecified
,enabled
,disabled
- Default value:unspecified
- priority int
- Priority, used in determining the designated router on this network. - Range:
0
-255
- Default value:1
- instance
Name String - OSPF instance name.
- interface
Id String - Must match first field in the output of
show intf brief
. Example:eth1/1
. - vrf
Name String - VRF name.
- advertise
Secondaries Boolean - Advertise secondary IP addresses. - Default value:
true
- area String
- Area identifier to which a network or interface belongs in IPv4 address format. - Default value:
0.0.0.0
- bfd String
- Bidirectional Forwarding Detection (BFD). - Choices:
unspecified
,enabled
,disabled
- Default value:unspecified
- cost Number
- Specifies the cost of interface. - Range:
0
-65535
- Default value:0
- dead
Interval Number - Dead interval, interval after which router declares that neighbor as down. - Range:
0
-65535
- Default value:0
- device String
- A device name from the provider configuration.
- hello
Interval Number - Hello interval, interval between hello packets that OSPF sends on the interface. - Range:
0
-65535
- Default value:10
- network
Type String - Network type. - Choices:
unspecified
,p2p
,bcast
- Default value:unspecified
- passive String
- Passive interface control. Interface can be configured as passive or non-passive. - Choices:
unspecified
,enabled
,disabled
- Default value:unspecified
- priority Number
- Priority, used in determining the designated router on this network. - Range:
0
-255
- Default value:1
Outputs
All input properties are implicitly available as output properties. Additionally, the OspfInterface 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 OspfInterface Resource
Get an existing OspfInterface 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?: OspfInterfaceState, opts?: CustomResourceOptions): OspfInterface
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
advertise_secondaries: Optional[bool] = None,
area: Optional[str] = None,
bfd: Optional[str] = None,
cost: Optional[int] = None,
dead_interval: Optional[int] = None,
device: Optional[str] = None,
hello_interval: Optional[int] = None,
instance_name: Optional[str] = None,
interface_id: Optional[str] = None,
network_type: Optional[str] = None,
passive: Optional[str] = None,
priority: Optional[int] = None,
vrf_name: Optional[str] = None) -> OspfInterface
func GetOspfInterface(ctx *Context, name string, id IDInput, state *OspfInterfaceState, opts ...ResourceOption) (*OspfInterface, error)
public static OspfInterface Get(string name, Input<string> id, OspfInterfaceState? state, CustomResourceOptions? opts = null)
public static OspfInterface get(String name, Output<String> id, OspfInterfaceState 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.
- Advertise
Secondaries bool - Advertise secondary IP addresses. - Default value:
true
- Area string
- Area identifier to which a network or interface belongs in IPv4 address format. - Default value:
0.0.0.0
- Bfd string
- Bidirectional Forwarding Detection (BFD). - Choices:
unspecified
,enabled
,disabled
- Default value:unspecified
- Cost int
- Specifies the cost of interface. - Range:
0
-65535
- Default value:0
- Dead
Interval int - Dead interval, interval after which router declares that neighbor as down. - Range:
0
-65535
- Default value:0
- Device string
- A device name from the provider configuration.
- Hello
Interval int - Hello interval, interval between hello packets that OSPF sends on the interface. - Range:
0
-65535
- Default value:10
- Instance
Name string - OSPF instance name.
- Interface
Id string - Must match first field in the output of
show intf brief
. Example:eth1/1
. - Network
Type string - Network type. - Choices:
unspecified
,p2p
,bcast
- Default value:unspecified
- Passive string
- Passive interface control. Interface can be configured as passive or non-passive. - Choices:
unspecified
,enabled
,disabled
- Default value:unspecified
- Priority int
- Priority, used in determining the designated router on this network. - Range:
0
-255
- Default value:1
- Vrf
Name string - VRF name.
- Advertise
Secondaries bool - Advertise secondary IP addresses. - Default value:
true
- Area string
- Area identifier to which a network or interface belongs in IPv4 address format. - Default value:
0.0.0.0
- Bfd string
- Bidirectional Forwarding Detection (BFD). - Choices:
unspecified
,enabled
,disabled
- Default value:unspecified
- Cost int
- Specifies the cost of interface. - Range:
0
-65535
- Default value:0
- Dead
Interval int - Dead interval, interval after which router declares that neighbor as down. - Range:
0
-65535
- Default value:0
- Device string
- A device name from the provider configuration.
- Hello
Interval int - Hello interval, interval between hello packets that OSPF sends on the interface. - Range:
0
-65535
- Default value:10
- Instance
Name string - OSPF instance name.
- Interface
Id string - Must match first field in the output of
show intf brief
. Example:eth1/1
. - Network
Type string - Network type. - Choices:
unspecified
,p2p
,bcast
- Default value:unspecified
- Passive string
- Passive interface control. Interface can be configured as passive or non-passive. - Choices:
unspecified
,enabled
,disabled
- Default value:unspecified
- Priority int
- Priority, used in determining the designated router on this network. - Range:
0
-255
- Default value:1
- Vrf
Name string - VRF name.
- advertise
Secondaries Boolean - Advertise secondary IP addresses. - Default value:
true
- area String
- Area identifier to which a network or interface belongs in IPv4 address format. - Default value:
0.0.0.0
- bfd String
- Bidirectional Forwarding Detection (BFD). - Choices:
unspecified
,enabled
,disabled
- Default value:unspecified
- cost Integer
- Specifies the cost of interface. - Range:
0
-65535
- Default value:0
- dead
Interval Integer - Dead interval, interval after which router declares that neighbor as down. - Range:
0
-65535
- Default value:0
- device String
- A device name from the provider configuration.
- hello
Interval Integer - Hello interval, interval between hello packets that OSPF sends on the interface. - Range:
0
-65535
- Default value:10
- instance
Name String - OSPF instance name.
- interface
Id String - Must match first field in the output of
show intf brief
. Example:eth1/1
. - network
Type String - Network type. - Choices:
unspecified
,p2p
,bcast
- Default value:unspecified
- passive String
- Passive interface control. Interface can be configured as passive or non-passive. - Choices:
unspecified
,enabled
,disabled
- Default value:unspecified
- priority Integer
- Priority, used in determining the designated router on this network. - Range:
0
-255
- Default value:1
- vrf
Name String - VRF name.
- advertise
Secondaries boolean - Advertise secondary IP addresses. - Default value:
true
- area string
- Area identifier to which a network or interface belongs in IPv4 address format. - Default value:
0.0.0.0
- bfd string
- Bidirectional Forwarding Detection (BFD). - Choices:
unspecified
,enabled
,disabled
- Default value:unspecified
- cost number
- Specifies the cost of interface. - Range:
0
-65535
- Default value:0
- dead
Interval number - Dead interval, interval after which router declares that neighbor as down. - Range:
0
-65535
- Default value:0
- device string
- A device name from the provider configuration.
- hello
Interval number - Hello interval, interval between hello packets that OSPF sends on the interface. - Range:
0
-65535
- Default value:10
- instance
Name string - OSPF instance name.
- interface
Id string - Must match first field in the output of
show intf brief
. Example:eth1/1
. - network
Type string - Network type. - Choices:
unspecified
,p2p
,bcast
- Default value:unspecified
- passive string
- Passive interface control. Interface can be configured as passive or non-passive. - Choices:
unspecified
,enabled
,disabled
- Default value:unspecified
- priority number
- Priority, used in determining the designated router on this network. - Range:
0
-255
- Default value:1
- vrf
Name string - VRF name.
- advertise_
secondaries bool - Advertise secondary IP addresses. - Default value:
true
- area str
- Area identifier to which a network or interface belongs in IPv4 address format. - Default value:
0.0.0.0
- bfd str
- Bidirectional Forwarding Detection (BFD). - Choices:
unspecified
,enabled
,disabled
- Default value:unspecified
- cost int
- Specifies the cost of interface. - Range:
0
-65535
- Default value:0
- dead_
interval int - Dead interval, interval after which router declares that neighbor as down. - Range:
0
-65535
- Default value:0
- device str
- A device name from the provider configuration.
- hello_
interval int - Hello interval, interval between hello packets that OSPF sends on the interface. - Range:
0
-65535
- Default value:10
- instance_
name str - OSPF instance name.
- interface_
id str - Must match first field in the output of
show intf brief
. Example:eth1/1
. - network_
type str - Network type. - Choices:
unspecified
,p2p
,bcast
- Default value:unspecified
- passive str
- Passive interface control. Interface can be configured as passive or non-passive. - Choices:
unspecified
,enabled
,disabled
- Default value:unspecified
- priority int
- Priority, used in determining the designated router on this network. - Range:
0
-255
- Default value:1
- vrf_
name str - VRF name.
- advertise
Secondaries Boolean - Advertise secondary IP addresses. - Default value:
true
- area String
- Area identifier to which a network or interface belongs in IPv4 address format. - Default value:
0.0.0.0
- bfd String
- Bidirectional Forwarding Detection (BFD). - Choices:
unspecified
,enabled
,disabled
- Default value:unspecified
- cost Number
- Specifies the cost of interface. - Range:
0
-65535
- Default value:0
- dead
Interval Number - Dead interval, interval after which router declares that neighbor as down. - Range:
0
-65535
- Default value:0
- device String
- A device name from the provider configuration.
- hello
Interval Number - Hello interval, interval between hello packets that OSPF sends on the interface. - Range:
0
-65535
- Default value:10
- instance
Name String - OSPF instance name.
- interface
Id String - Must match first field in the output of
show intf brief
. Example:eth1/1
. - network
Type String - Network type. - Choices:
unspecified
,p2p
,bcast
- Default value:unspecified
- passive String
- Passive interface control. Interface can be configured as passive or non-passive. - Choices:
unspecified
,enabled
,disabled
- Default value:unspecified
- priority Number
- Priority, used in determining the designated router on this network. - Range:
0
-255
- Default value:1
- vrf
Name String - VRF name.
Import
$ pulumi import nxos:index/ospfInterface:OspfInterface example "sys/ospf/inst-[OSPF1]/dom-[VRF1]/if-[eth1/10]"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- nxos lbrlabs/pulumi-nxos
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
nxos
Terraform Provider.