Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fold obsolete getLoopbackInterfaceNode() into getLoopback0Addresses() #938

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

chrismarget-j
Copy link
Collaborator

@chrismarget-j chrismarget-j commented Oct 20, 2024

The getLoopbackInterfaceNode() function was previously used for a few different purposes, which explains it's peculiar "return raw JSON" function signature.

Various previous PRs mean we're only using it for one thing now: Retrieve IPv4 and IPv6 addresses.

At this point, It doesn't need to exist at all as a standalone function, let alone one so clunky that it returns raw JSON.

This PR folds that function into the only place it gets called, and cleans up some of the clunkiness associated with passing around raw JSON. The logic is (should be?) unchanged.

Closes #891

@chrismarget-j chrismarget-j linked an issue Oct 20, 2024 that may be closed by this pull request
@chrismarget-j chrismarget-j marked this pull request as draft October 20, 2024 13:05
@chrismarget-j chrismarget-j changed the title WIP: Fold obsolete getLoopbackInterfaceNode() into getLoopback0Addresses() Fold obsolete getLoopbackInterfaceNode() into getLoopback0Addresses() Oct 20, 2024
@chrismarget-j chrismarget-j marked this pull request as ready for review October 20, 2024 17:25
@chrismarget-j chrismarget-j merged commit cde2f2b into main Oct 21, 2024
1 check passed
@chrismarget-j chrismarget-j deleted the 891-clean-up-interface-ip-retrieval branch October 21, 2024 15:10
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.

Clean up interface IP retrieval
2 participants