Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/data-sources/interface_ospf.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ data "iosxe_interface_ospf" "example" {
- `id` (String) The path of the retrieved object.
- `message_digest_keys` (Attributes List) Message digest authentication password (key) (see [below for nested schema](#nestedatt--message_digest_keys))
- `mtu_ignore` (Boolean) Ignores the MTU in DBD packets
- `multi_area_ids` (Attributes List) Set the OSPF multi-area ID (see [below for nested schema](#nestedatt--multi_area_ids))
- `network_type_broadcast` (Boolean) Specify OSPF broadcast multi-access network
- `network_type_non_broadcast` (Boolean) Specify OSPF NBMA network
- `network_type_point_to_multipoint` (Boolean) Specify OSPF point-to-multipoint network
Expand All @@ -57,6 +58,14 @@ Read-Only:
- `md5_auth_type` (Number) Encryption type (0 for not yet encrypted, 7 for proprietary)


<a id="nestedatt--multi_area_ids"></a>
### Nested Schema for `multi_area_ids`

Read-Only:

- `area_id` (String) OSPF multi-area ID


<a id="nestedatt--process_ids"></a>
### Nested Schema for `process_ids`

Expand Down
15 changes: 15 additions & 0 deletions docs/data-sources/ospf.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,24 @@ data "iosxe_ospf" "example" {
- `default_metric` (Number) Set metric of redistributed routes
- `distance` (Number) Administrative distance
- `domain_tag` (Number) OSPF domain-tag
- `fast_reroute_per_prefix_enable_prefix_priority` (String) Priority of prefixes to be protected
- `id` (String) The path of the retrieved object.
- `log_adjacency_changes` (Boolean) Log changes in adjacency state
- `log_adjacency_changes_detail` (Boolean) Log all state changes
- `max_metric_router_lsa` (Boolean) Maximum metric in self-originated router-LSAs
- `max_metric_router_lsa_external_lsa_metric` (Number)
- `max_metric_router_lsa_include_stub` (Boolean) Set maximum metric for stub links in router-LSAs
- `max_metric_router_lsa_on_startup_time` (Number)
- `max_metric_router_lsa_on_startup_wait_for_bgp` (Boolean) Let BGP decide when to originate router-LSA with normal metric
- `max_metric_router_lsa_summary_lsa_metric` (Number)
- `mpls_ldp_autoconfig` (Boolean) Configure LDP automatic configuration
- `mpls_ldp_sync` (Boolean) Configure LDP-IGP Synchronization
- `neighbors` (Attributes List) Specify a neighbor router (see [below for nested schema](#nestedatt--neighbors))
- `networks` (Attributes List) Enable routing on an IP network (see [below for nested schema](#nestedatt--networks))
- `nsf_cisco` (Boolean) Cisco Non-stop forwarding
- `nsf_cisco_enforce_global` (Boolean) For the whole OSPF process
- `nsf_ietf` (Boolean) IETF graceful restart
- `nsf_ietf_restart_interval` (Number) Graceful restart interval
- `passive_interface` (List of String)
- `passive_interface_default` (Boolean) Suppress routing updates on all interfaces
- `passive_interface_disable_five_gigabit_ethernets` (Attributes Set) (see [below for nested schema](#nestedatt--passive_interface_disable_five_gigabit_ethernets))
Expand All @@ -61,6 +74,8 @@ data "iosxe_ospf" "example" {
- `passive_interface_disable_two_hundred_gigabit_ethernets` (Attributes Set) (see [below for nested schema](#nestedatt--passive_interface_disable_two_hundred_gigabit_ethernets))
- `passive_interface_disable_vlans` (Attributes Set) (see [below for nested schema](#nestedatt--passive_interface_disable_vlans))
- `priority` (Number) OSPF topology priority
- `redistribute_connected_subnets` (Boolean) Consider subnets for redistribution into OSPF (Will be removed in the future)
- `redistribute_static_subnets` (Boolean) Consider subnets for redistribution into OSPF (Will be removed in the future)
- `router_id` (String) Configure router identifier. New router-id will take effect immediately (peers will reset)
- `shutdown` (Boolean) Shutdown the OSPF protocol under the current instance
- `summary_addresses` (Attributes List) Configure IP address summaries (see [below for nested schema](#nestedatt--summary_addresses))
Expand Down
14 changes: 14 additions & 0 deletions docs/data-sources/ospf_vrf.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,22 @@ data "iosxe_ospf_vrf" "example" {
- `distance` (Number) Administrative distance
- `domain_tag` (Number) OSPF domain-tag
- `id` (String) The path of the retrieved object.
- `log_adjacency_changes` (Boolean) Log changes in adjacency state
- `log_adjacency_changes_detail` (Boolean) Log all state changes
- `max_metric_router_lsa` (Boolean) Maximum metric in self-originated router-LSAs
- `max_metric_router_lsa_external_lsa_metric` (Number)
- `max_metric_router_lsa_include_stub` (Boolean) Set maximum metric for stub links in router-LSAs
- `max_metric_router_lsa_on_startup_time` (Number)
- `max_metric_router_lsa_on_startup_wait_for_bgp` (Boolean) Let BGP decide when to originate router-LSA with normal metric
- `max_metric_router_lsa_summary_lsa_metric` (Number)
- `mpls_ldp_autoconfig` (Boolean) Configure LDP automatic configuration
- `mpls_ldp_sync` (Boolean) Configure LDP-IGP Synchronization
- `neighbor` (Attributes List) Specify a neighbor router (see [below for nested schema](#nestedatt--neighbor))
- `network` (Attributes List) Enable routing on an IP network (see [below for nested schema](#nestedatt--network))
- `nsf_cisco` (Boolean) Cisco Non-stop forwarding
- `nsf_cisco_enforce_global` (Boolean) For the whole OSPF process
- `nsf_ietf` (Boolean) IETF graceful restart
- `nsf_ietf_restart_interval` (Number) Graceful restart interval
- `passive_interface` (List of String)
- `passive_interface_default` (Boolean) Suppress routing updates on all interfaces
- `passive_interface_disable_five_gigabit_ethernets` (Attributes Set) (see [below for nested schema](#nestedatt--passive_interface_disable_five_gigabit_ethernets))
Expand All @@ -63,6 +75,8 @@ data "iosxe_ospf_vrf" "example" {
- `passive_interface_disable_two_hundred_gigabit_ethernets` (Attributes Set) (see [below for nested schema](#nestedatt--passive_interface_disable_two_hundred_gigabit_ethernets))
- `passive_interface_disable_vlans` (Attributes Set) (see [below for nested schema](#nestedatt--passive_interface_disable_vlans))
- `priority` (Number) OSPF topology priority
- `redistribute_connected_subnets` (Boolean) Consider subnets for redistribution into OSPF (Will be removed in the future)
- `redistribute_static_subnets` (Boolean) Consider subnets for redistribution into OSPF (Will be removed in the future)
- `router_id` (String) Configure router identifier. New router-id will take effect immediately (peers will reset)
- `shutdown` (Boolean) Shutdown the OSPF protocol under the current instance
- `summary_address` (Attributes List) Configure IP address summaries (see [below for nested schema](#nestedatt--summary_address))
Expand Down
14 changes: 14 additions & 0 deletions docs/resources/interface_ospf.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ resource "iosxe_interface_ospf" "example" {
]
}
]
multi_area_ids = [
{
area_id = "10"
}
]
message_digest_keys = [
{
id = 1
Expand Down Expand Up @@ -68,6 +73,7 @@ resource "iosxe_interface_ospf" "example" {
- Range: `1`-`65535`
- `message_digest_keys` (Attributes List) Message digest authentication password (key) (see [below for nested schema](#nestedatt--message_digest_keys))
- `mtu_ignore` (Boolean) Ignores the MTU in DBD packets
- `multi_area_ids` (Attributes List) Set the OSPF multi-area ID (see [below for nested schema](#nestedatt--multi_area_ids))
- `network_type_broadcast` (Boolean) Specify OSPF broadcast multi-access network
- `network_type_non_broadcast` (Boolean) Specify OSPF NBMA network
- `network_type_point_to_multipoint` (Boolean) Specify OSPF point-to-multipoint network
Expand Down Expand Up @@ -97,6 +103,14 @@ Optional:
- Range: `0`-`7`


<a id="nestedatt--multi_area_ids"></a>
### Nested Schema for `multi_area_ids`

Required:

- `area_id` (String) OSPF multi-area ID


<a id="nestedatt--process_ids"></a>
### Nested Schema for `process_ids`

Expand Down
36 changes: 34 additions & 2 deletions docs/resources/ospf.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,23 @@ resource "iosxe_ospf" "example" {
nssa_no_redistribution = true
}
]
auto_cost_reference_bandwidth = 40000
passive_interface_default = true
auto_cost_reference_bandwidth = 40000
passive_interface_default = true
log_adjacency_changes = true
log_adjacency_changes_detail = true
nsf_cisco = true
nsf_cisco_enforce_global = true
nsf_ietf = true
nsf_ietf_restart_interval = 120
max_metric_router_lsa = true
max_metric_router_lsa_summary_lsa_metric = 16711680
max_metric_router_lsa_external_lsa_metric = 16711680
max_metric_router_lsa_include_stub = true
max_metric_router_lsa_on_startup_time = 60
max_metric_router_lsa_on_startup_wait_for_bgp = true
fast_reroute_per_prefix_enable_prefix_priority = "high"
redistribute_static_subnets = true
redistribute_connected_subnets = true
}
```

Expand Down Expand Up @@ -86,10 +101,25 @@ resource "iosxe_ospf" "example" {
- Range: `1`-`255`
- `domain_tag` (Number) OSPF domain-tag
- Range: `1`-`4294967295`
- `fast_reroute_per_prefix_enable_prefix_priority` (String) Priority of prefixes to be protected
- Choices: `high`, `low`
- `log_adjacency_changes` (Boolean) Log changes in adjacency state
- `log_adjacency_changes_detail` (Boolean) Log all state changes
- `max_metric_router_lsa` (Boolean) Maximum metric in self-originated router-LSAs
- `max_metric_router_lsa_external_lsa_metric` (Number) - Range: `1`-`16777214`
- `max_metric_router_lsa_include_stub` (Boolean) Set maximum metric for stub links in router-LSAs
- `max_metric_router_lsa_on_startup_time` (Number) - Range: `5`-`86400`
- `max_metric_router_lsa_on_startup_wait_for_bgp` (Boolean) Let BGP decide when to originate router-LSA with normal metric
- `max_metric_router_lsa_summary_lsa_metric` (Number) - Range: `1`-`16777214`
- `mpls_ldp_autoconfig` (Boolean) Configure LDP automatic configuration
- `mpls_ldp_sync` (Boolean) Configure LDP-IGP Synchronization
- `neighbors` (Attributes List) Specify a neighbor router (see [below for nested schema](#nestedatt--neighbors))
- `networks` (Attributes List) Enable routing on an IP network (see [below for nested schema](#nestedatt--networks))
- `nsf_cisco` (Boolean) Cisco Non-stop forwarding
- `nsf_cisco_enforce_global` (Boolean) For the whole OSPF process
- `nsf_ietf` (Boolean) IETF graceful restart
- `nsf_ietf_restart_interval` (Number) Graceful restart interval
- Range: `1`-`1800`
- `passive_interface` (List of String)
- `passive_interface_default` (Boolean) Suppress routing updates on all interfaces
- `passive_interface_disable_five_gigabit_ethernets` (Attributes Set) (see [below for nested schema](#nestedatt--passive_interface_disable_five_gigabit_ethernets))
Expand All @@ -108,6 +138,8 @@ resource "iosxe_ospf" "example" {
- `passive_interface_disable_vlans` (Attributes Set) (see [below for nested schema](#nestedatt--passive_interface_disable_vlans))
- `priority` (Number) OSPF topology priority
- Range: `0`-`127`
- `redistribute_connected_subnets` (Boolean) Consider subnets for redistribution into OSPF (Will be removed in the future)
- `redistribute_static_subnets` (Boolean) Consider subnets for redistribution into OSPF (Will be removed in the future)
- `router_id` (String) Configure router identifier. New router-id will take effect immediately (peers will reset)
- `shutdown` (Boolean) Shutdown the OSPF protocol under the current instance
- `summary_addresses` (Attributes List) Configure IP address summaries (see [below for nested schema](#nestedatt--summary_addresses))
Expand Down
45 changes: 37 additions & 8 deletions docs/resources/ospf_vrf.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,28 @@ This resource can manage the OSPF VRF configuration.

```terraform
resource "iosxe_ospf_vrf" "example" {
process_id = 2
vrf = "VRF1"
bfd_all_interfaces = true
default_information_originate = true
default_information_originate_always = true
default_metric = 21
distance = 120
domain_tag = 10
process_id = 2
vrf = "VRF1"
bfd_all_interfaces = true
default_information_originate = true
default_information_originate_always = true
default_metric = 21
distance = 120
domain_tag = 10
log_adjacency_changes = true
log_adjacency_changes_detail = true
nsf_cisco = true
nsf_cisco_enforce_global = true
nsf_ietf = true
nsf_ietf_restart_interval = 120
max_metric_router_lsa = true
max_metric_router_lsa_summary_lsa_metric = 16711680
max_metric_router_lsa_external_lsa_metric = 16711680
max_metric_router_lsa_include_stub = true
max_metric_router_lsa_on_startup_time = 60
max_metric_router_lsa_on_startup_wait_for_bgp = true
redistribute_static_subnets = true
redistribute_connected_subnets = true
neighbor = [
{
ip = "2.2.2.2"
Expand Down Expand Up @@ -88,10 +102,23 @@ resource "iosxe_ospf_vrf" "example" {
- Range: `1`-`255`
- `domain_tag` (Number) OSPF domain-tag
- Range: `1`-`4294967295`
- `log_adjacency_changes` (Boolean) Log changes in adjacency state
- `log_adjacency_changes_detail` (Boolean) Log all state changes
- `max_metric_router_lsa` (Boolean) Maximum metric in self-originated router-LSAs
- `max_metric_router_lsa_external_lsa_metric` (Number) - Range: `1`-`16777214`
- `max_metric_router_lsa_include_stub` (Boolean) Set maximum metric for stub links in router-LSAs
- `max_metric_router_lsa_on_startup_time` (Number) - Range: `5`-`86400`
- `max_metric_router_lsa_on_startup_wait_for_bgp` (Boolean) Let BGP decide when to originate router-LSA with normal metric
- `max_metric_router_lsa_summary_lsa_metric` (Number) - Range: `1`-`16777214`
- `mpls_ldp_autoconfig` (Boolean) Configure LDP automatic configuration
- `mpls_ldp_sync` (Boolean) Configure LDP-IGP Synchronization
- `neighbor` (Attributes List) Specify a neighbor router (see [below for nested schema](#nestedatt--neighbor))
- `network` (Attributes List) Enable routing on an IP network (see [below for nested schema](#nestedatt--network))
- `nsf_cisco` (Boolean) Cisco Non-stop forwarding
- `nsf_cisco_enforce_global` (Boolean) For the whole OSPF process
- `nsf_ietf` (Boolean) IETF graceful restart
- `nsf_ietf_restart_interval` (Number) Graceful restart interval
- Range: `1`-`1800`
- `passive_interface` (List of String)
- `passive_interface_default` (Boolean) Suppress routing updates on all interfaces
- `passive_interface_disable_five_gigabit_ethernets` (Attributes Set) (see [below for nested schema](#nestedatt--passive_interface_disable_five_gigabit_ethernets))
Expand All @@ -110,6 +137,8 @@ resource "iosxe_ospf_vrf" "example" {
- `passive_interface_disable_vlans` (Attributes Set) (see [below for nested schema](#nestedatt--passive_interface_disable_vlans))
- `priority` (Number) OSPF topology priority
- Range: `0`-`127`
- `redistribute_connected_subnets` (Boolean) Consider subnets for redistribution into OSPF (Will be removed in the future)
- `redistribute_static_subnets` (Boolean) Consider subnets for redistribution into OSPF (Will be removed in the future)
- `router_id` (String) Configure router identifier. New router-id will take effect immediately (peers will reset)
- `shutdown` (Boolean) Shutdown the OSPF protocol under the current instance
- `summary_address` (Attributes List) Configure IP address summaries (see [below for nested schema](#nestedatt--summary_address))
Expand Down
5 changes: 5 additions & 0 deletions examples/resources/iosxe_interface_ospf/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ resource "iosxe_interface_ospf" "example" {
]
}
]
multi_area_ids = [
{
area_id = "10"
}
]
message_digest_keys = [
{
id = 1
Expand Down
19 changes: 17 additions & 2 deletions examples/resources/iosxe_ospf/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,21 @@ resource "iosxe_ospf" "example" {
nssa_no_redistribution = true
}
]
auto_cost_reference_bandwidth = 40000
passive_interface_default = true
auto_cost_reference_bandwidth = 40000
passive_interface_default = true
log_adjacency_changes = true
log_adjacency_changes_detail = true
nsf_cisco = true
nsf_cisco_enforce_global = true
nsf_ietf = true
nsf_ietf_restart_interval = 120
max_metric_router_lsa = true
max_metric_router_lsa_summary_lsa_metric = 16711680
max_metric_router_lsa_external_lsa_metric = 16711680
max_metric_router_lsa_include_stub = true
max_metric_router_lsa_on_startup_time = 60
max_metric_router_lsa_on_startup_wait_for_bgp = true
fast_reroute_per_prefix_enable_prefix_priority = "high"
redistribute_static_subnets = true
redistribute_connected_subnets = true
}
30 changes: 22 additions & 8 deletions examples/resources/iosxe_ospf_vrf/resource.tf
Original file line number Diff line number Diff line change
@@ -1,12 +1,26 @@
resource "iosxe_ospf_vrf" "example" {
process_id = 2
vrf = "VRF1"
bfd_all_interfaces = true
default_information_originate = true
default_information_originate_always = true
default_metric = 21
distance = 120
domain_tag = 10
process_id = 2
vrf = "VRF1"
bfd_all_interfaces = true
default_information_originate = true
default_information_originate_always = true
default_metric = 21
distance = 120
domain_tag = 10
log_adjacency_changes = true
log_adjacency_changes_detail = true
nsf_cisco = true
nsf_cisco_enforce_global = true
nsf_ietf = true
nsf_ietf_restart_interval = 120
max_metric_router_lsa = true
max_metric_router_lsa_summary_lsa_metric = 16711680
max_metric_router_lsa_external_lsa_metric = 16711680
max_metric_router_lsa_include_stub = true
max_metric_router_lsa_on_startup_time = 60
max_metric_router_lsa_on_startup_wait_for_bgp = true
redistribute_static_subnets = true
redistribute_connected_subnets = true
neighbor = [
{
ip = "2.2.2.2"
Expand Down
8 changes: 8 additions & 0 deletions gen/definitions/interface_ospf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@ attributes:
- yang_name: area-id
id: true
example: 0
- yang_name: multi-area/multi-area-id
tf_name: multi_area_ids
type: List
attributes:
- yang_name: area-id
id: true
type: String
example: "10"
- yang_name: message-digest-key
tf_name: message_digest_keys
type: List
Expand Down
Loading