Skip to content

Commit e524a1a

Browse files
rwcrowerocrowe
andauthored
fix(iosxr_prefix_list): update mask handling to use entry length instead of mask (#184)
Co-authored-by: rocrowe <rocrowe@cisco.com>
1 parent 258afaa commit e524a1a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

iosxr_prefix_list.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ locals {
1010
remark = try(entry.remark, local.defaults.iosxr.devices.configuration.prefix_lists.ipv4.entries.remark, null)
1111
permission = try(entry.action, local.defaults.iosxr.devices.configuration.prefix_lists.ipv4.entries.action, null)
1212
prefix = try(entry.prefix, local.defaults.iosxr.devices.configuration.prefix_lists.ipv4.entries.prefix, null)
13-
mask = try(provider::utils::normalize_mask(entry.mask, "dotted-decimal"), entry.mask, local.defaults.iosxr.devices.configuration.prefix_lists.ipv4.entries.mask, null)
13+
mask = try(provider::utils::normalize_mask(entry.length, "dotted-decimal"), entry.length, local.defaults.iosxr.devices.configuration.prefix_lists.ipv4.entries.length, null)
1414
match_prefix_length_eq = try(entry.exact_length, local.defaults.iosxr.devices.configuration.prefix_lists.ipv4.entries.exact_length, null)
1515
match_prefix_length_ge = try(entry.min_length, local.defaults.iosxr.devices.configuration.prefix_lists.ipv4.entries.min_length, null)
1616
match_prefix_length_le = try(entry.max_length, local.defaults.iosxr.devices.configuration.prefix_lists.ipv4.entries.max_length, null)

0 commit comments

Comments
 (0)