Skip to content

Commit fa1da3b

Browse files
committed
Add igp sync delay and label local allocate attributes to mpls ldp resource
1 parent 634511e commit fa1da3b

File tree

12 files changed

+154
-4
lines changed

12 files changed

+154
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- Add `advertisement_interval` attributes to `iosxr_router_bgp`, `iosxr_router_bgp_vrf` and `iosxr_router_bgp_neighbor_group` resources and data sources
88
- Add `load_balancing_flow_src_dst_mac` and `load_balancing_flow_src_dst_ip` attributes to `iosxr_l2vpn` resource and data source
99
- Add `iosxr_l2vpn_pw_class` resource and data source
10+
- Add `igp_sync_delay` and `label_local_allocate` attributes to `iosxr_mpls_ldp` resource and data source
1011

1112
## 0.2.3
1213

docs/data-sources/mpls_ldp.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ data "iosxr_mpls_ldp" "example" {
3232
- `capabilities_sac_ipv4_disable` (Boolean) Disable exchanging IPv4 prefix label bindings
3333
- `capabilities_sac_ipv6_disable` (Boolean) Disable exchanging IPv6 prefix label bindings
3434
- `id` (String) The path of the retrieved object.
35+
- `igp_sync_delay_on_proc_restart` (Number) Global sync up delay to be used after process restart
36+
- `igp_sync_delay_on_session_up` (Number) Interface sync-up delay after session up
3537
- `interfaces` (Attributes List) Enable LDP on an interface and enter interface submode (see [below for nested schema](#nestedatt--interfaces))
3638
- `mldp_address_families` (Attributes List) Configure Address Family and its parameters (see [below for nested schema](#nestedatt--mldp_address_families))
3739
- `mldp_logging_notifications` (Boolean) MLDP logging notifications
@@ -44,6 +46,8 @@ data "iosxr_mpls_ldp" "example" {
4446
Read-Only:
4547

4648
- `af_name` (String) Configure Address Family and its parameters
49+
- `label_local_allocate_for_access_list` (String) IP access-list
50+
- `label_local_allocate_for_host_routes` (Boolean) Allocate label for host routes only
4751

4852

4953
<a id="nestedatt--interfaces"></a>

docs/guides/changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ description: |-
1616
- Add `advertisement_interval` attributes to `iosxr_router_bgp`, `iosxr_router_bgp_vrf` and `iosxr_router_bgp_neighbor_group` resources and data sources
1717
- Add `load_balancing_flow_src_dst_mac` and `load_balancing_flow_src_dst_ip` attributes to `iosxr_l2vpn` resource and data source
1818
- Add `iosxr_l2vpn_pw_class` resource and data source
19+
- Add `igp_sync_delay` and `label_local_allocate` attributes to `iosxr_mpls_ldp` resource and data source
1920

2021
## 0.2.3
2122

docs/resources/mpls_ldp.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ resource "iosxr_mpls_ldp" "example" {
1717
router_id = "1.2.3.4"
1818
address_families = [
1919
{
20-
af_name = "ipv4"
20+
af_name = "ipv4"
21+
label_local_allocate_for_access_list = "ACL1"
2122
}
2223
]
2324
interfaces = [
@@ -29,6 +30,8 @@ resource "iosxr_mpls_ldp" "example" {
2930
capabilities_sac_ipv6_disable = true
3031
capabilities_sac_fec128_disable = true
3132
capabilities_sac_fec129_disable = true
33+
igp_sync_delay_on_session_up = 10
34+
igp_sync_delay_on_proc_restart = 100
3235
mldp_logging_notifications = true
3336
mldp_address_families = [
3437
{
@@ -56,6 +59,10 @@ resource "iosxr_mpls_ldp" "example" {
5659
- `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`.
5760
- Choices: `all`, `attributes`
5861
- `device` (String) A device name from the provider configuration.
62+
- `igp_sync_delay_on_proc_restart` (Number) Global sync up delay to be used after process restart
63+
- Range: `60`-`600`
64+
- `igp_sync_delay_on_session_up` (Number) Interface sync-up delay after session up
65+
- Range: `5`-`300`
5966
- `interfaces` (Attributes List) Enable LDP on an interface and enter interface submode (see [below for nested schema](#nestedatt--interfaces))
6067
- `mldp_address_families` (Attributes List) Configure Address Family and its parameters (see [below for nested schema](#nestedatt--mldp_address_families))
6168
- `mldp_logging_notifications` (Boolean) MLDP logging notifications
@@ -74,6 +81,11 @@ Required:
7481
- `af_name` (String) Configure Address Family and its parameters
7582
- Choices: `ipv4`, `ipv6`
7683

84+
Optional:
85+
86+
- `label_local_allocate_for_access_list` (String) IP access-list
87+
- `label_local_allocate_for_host_routes` (Boolean) Allocate label for host routes only
88+
7789

7890
<a id="nestedatt--interfaces"></a>
7991
### Nested Schema for `interfaces`

examples/resources/iosxr_mpls_ldp/resource.tf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ resource "iosxr_mpls_ldp" "example" {
22
router_id = "1.2.3.4"
33
address_families = [
44
{
5-
af_name = "ipv4"
5+
af_name = "ipv4"
6+
label_local_allocate_for_access_list = "ACL1"
67
}
78
]
89
interfaces = [
@@ -14,6 +15,8 @@ resource "iosxr_mpls_ldp" "example" {
1415
capabilities_sac_ipv6_disable = true
1516
capabilities_sac_fec128_disable = true
1617
capabilities_sac_fec129_disable = true
18+
igp_sync_delay_on_session_up = 10
19+
igp_sync_delay_on_proc_restart = 100
1720
mldp_logging_notifications = true
1821
mldp_address_families = [
1922
{

gen/definitions/mpls_ldp.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,18 @@ attributes:
1212
- yang_name: af-name
1313
id: true
1414
example: ipv4
15+
- yang_name: label/local/allocate/for/access-list
16+
example: ACL1
17+
- yang_name: label/local/allocate/for/host-routes
18+
example: true
19+
exclude_test: true
1520
- yang_name: interfaces/interface
1621
tf_name: interfaces
1722
type: List
1823
attributes:
1924
- yang_name: interface-name
2025
id: true
2126
example: GigabitEthernet0/0/0/1
22-
2327
- yang_name: capabilities/sac/ipv4-disable
2428
example: true
2529
- yang_name: capabilities/sac/ipv6-disable
@@ -28,6 +32,10 @@ attributes:
2832
example: true
2933
- yang_name: capabilities/sac/fec129-disable
3034
example: true
35+
- yang_name: igp/sync/delay/on-session-up
36+
example: 10
37+
- yang_name: igp/sync/delay/on-proc-restart
38+
example: 100
3139
- yang_name: mldp/logging/notifications
3240
example: true
3341
- yang_name: mldp/address-families/address-family

internal/provider/data_source_iosxr_mpls_ldp.go

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/provider/data_source_iosxr_mpls_ldp_test.go

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/provider/model_iosxr_mpls_ldp.go

Lines changed: 68 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/provider/resource_iosxr_mpls_ldp.go

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)