diff --git a/CHANGELOG.md b/CHANGELOG.md index 041e51cb..408a7792 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ - Add `next_hop_self`, `soft_reconfiguration_inbound_always`, `send_community_ebgp`, `send_community_ebgp_inheritance_disable`, `maximum_prefix_limit`, `maximum_prefix_threshold`, `maximum_prefix_restart`, `maximum_prefix_discard_extra_paths`, `maximum_prefix_warning_only`, `default_originate_route_policy` and `default_originate_inheritance_disable` attributes to `iosxr_router_bgp_neighbor_address_family` resource and data source - Add `timers_keepalive_interval`, `timers_holdtime` and `timers_minimum_acceptable_holdtime` attributes to `iosxr_router_bgp_neighbor_group` resource and data source +- Make `index_sid_index` and `absolute_sid_label` attribute of `iosxr_router_ospf_area_interface` resource optional ## 0.4.0 diff --git a/docs/guides/changelog.md b/docs/guides/changelog.md index f188e86c..051d768d 100644 --- a/docs/guides/changelog.md +++ b/docs/guides/changelog.md @@ -11,6 +11,7 @@ description: |- - Add `next_hop_self`, `soft_reconfiguration_inbound_always`, `send_community_ebgp`, `send_community_ebgp_inheritance_disable`, `maximum_prefix_limit`, `maximum_prefix_threshold`, `maximum_prefix_restart`, `maximum_prefix_discard_extra_paths`, `maximum_prefix_warning_only`, `default_originate_route_policy` and `default_originate_inheritance_disable` attributes to `iosxr_router_bgp_neighbor_address_family` resource and data source - Add `timers_keepalive_interval`, `timers_holdtime` and `timers_minimum_acceptable_holdtime` attributes to `iosxr_router_bgp_neighbor_group` resource and data source +- Make `index_sid_index` and `absolute_sid_label` attribute of `iosxr_router_ospf_area_interface` resource optional ## 0.4.0 diff --git a/docs/resources/router_ospf_area_interface.md b/docs/resources/router_ospf_area_interface.md index 48f42bce..ed62325a 100644 --- a/docs/resources/router_ospf_area_interface.md +++ b/docs/resources/router_ospf_area_interface.md @@ -73,19 +73,19 @@ resource "iosxr_router_ospf_area_interface" "example" { Required: -- `absolute_sid_label` (Number) SID value - - Range: `16000`-`1048575` - `algorithm_number` (Number) Algorithm Specific Prefix SID Configuration - Range: `128`-`255` -- `index_sid_index` (Number) SID Index - - Range: `0`-`1048575` Optional: - `absolute_explicit_null` (Boolean) Force penultimate hop to send explicit-null label - `absolute_n_flag_clear` (Boolean) Not a node SID (e.g. for anycast SID use) +- `absolute_sid_label` (Number) SID value + - Range: `16000`-`1048575` - `index_explicit_null` (Boolean) Force penultimate hop to send explicit-null label - `index_n_flag_clear` (Boolean) Not a node SID (e.g. for anycast SID use) +- `index_sid_index` (Number) SID Index + - Range: `0`-`1048575` ## Import diff --git a/gen/definitions/router_ospf_area_interface.yaml b/gen/definitions/router_ospf_area_interface.yaml index 7911a404..29a029e1 100644 --- a/gen/definitions/router_ospf_area_interface.yaml +++ b/gen/definitions/router_ospf_area_interface.yaml @@ -49,12 +49,14 @@ attributes: id: true example: 233 - yang_name: index/sid-index + optional: true example: 1048 - yang_name: index/explicit-null example: false - yang_name: index/n-flag-clear example: false - yang_name: absolute/sid-label + optional: true example: 17000 exclude_test: true - yang_name: absolute/explicit-null diff --git a/internal/provider/resource_iosxr_router_ospf_area_interface.go b/internal/provider/resource_iosxr_router_ospf_area_interface.go index c4f64ba2..4b176f09 100644 --- a/internal/provider/resource_iosxr_router_ospf_area_interface.go +++ b/internal/provider/resource_iosxr_router_ospf_area_interface.go @@ -180,7 +180,7 @@ func (r *RouterOSPFAreaInterfaceResource) Schema(ctx context.Context, req resour }, "index_sid_index": schema.Int64Attribute{ MarkdownDescription: helpers.NewAttributeDescription("SID Index").AddIntegerRangeDescription(0, 1048575).String, - Required: true, + Optional: true, Validators: []validator.Int64{ int64validator.Between(0, 1048575), }, @@ -195,7 +195,7 @@ func (r *RouterOSPFAreaInterfaceResource) Schema(ctx context.Context, req resour }, "absolute_sid_label": schema.Int64Attribute{ MarkdownDescription: helpers.NewAttributeDescription("SID value").AddIntegerRangeDescription(16000, 1048575).String, - Required: true, + Optional: true, Validators: []validator.Int64{ int64validator.Between(16000, 1048575), }, diff --git a/templates/guides/changelog.md.tmpl b/templates/guides/changelog.md.tmpl index f188e86c..051d768d 100644 --- a/templates/guides/changelog.md.tmpl +++ b/templates/guides/changelog.md.tmpl @@ -11,6 +11,7 @@ description: |- - Add `next_hop_self`, `soft_reconfiguration_inbound_always`, `send_community_ebgp`, `send_community_ebgp_inheritance_disable`, `maximum_prefix_limit`, `maximum_prefix_threshold`, `maximum_prefix_restart`, `maximum_prefix_discard_extra_paths`, `maximum_prefix_warning_only`, `default_originate_route_policy` and `default_originate_inheritance_disable` attributes to `iosxr_router_bgp_neighbor_address_family` resource and data source - Add `timers_keepalive_interval`, `timers_holdtime` and `timers_minimum_acceptable_holdtime` attributes to `iosxr_router_bgp_neighbor_group` resource and data source +- Make `index_sid_index` and `absolute_sid_label` attribute of `iosxr_router_ospf_area_interface` resource optional ## 0.4.0