Skip to content

Correctly group R53_ALIAS records during IncrementalDiff.#399

Merged
captncraig merged 1 commit intoStackExchange:masterfrom
ebardsley:diff_key
Sep 4, 2018
Merged

Correctly group R53_ALIAS records during IncrementalDiff.#399
captncraig merged 1 commit intoStackExchange:masterfrom
ebardsley:diff_key

Conversation

@ebardsley
Copy link
Copy Markdown
Contributor

This mirrors logic in the R53 provider, and deals with spurious corrections in
the case that aliases exist for both A and AAAA records, which is common.

This also centralizes logic around keys to the models package and adds tests.

Previously, unnecessary corrections were possible if both an R53_ALIAS
pointing to an A record and to an AAAA record existed for the same label,
and map iteration over existing and desired found them in different orders.
(This is a common configuration for IPv6-enabled records.)

This commit:
 * mirrors key logic in the R53 provider
 * centralizes logic around keys in the models package
 * adds tests
@ebardsley ebardsley changed the title Appropriately categorize R53_ALIAS records during IncrementalDiff. Correctly group R53_ALIAS records during IncrementalDiff. Aug 30, 2018
@captncraig
Copy link
Copy Markdown
Contributor

Great improvements all around. Thanks.

@captncraig captncraig merged commit 61c92c9 into StackExchange:master Sep 4, 2018
@ebardsley ebardsley deleted the diff_key branch September 4, 2018 16:35
rblenkinsopp pushed a commit to rblenkinsopp/dnscontrol that referenced this pull request Aug 21, 2020
…nge#399)

Previously, unnecessary corrections were possible if both an R53_ALIAS
pointing to an A record and to an AAAA record existed for the same label,
and map iteration over existing and desired found them in different orders.
(This is a common configuration for IPv6-enabled records.)

This commit:
 * mirrors key logic in the R53 provider
 * centralizes logic around keys in the models package
 * adds tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants