Skip to content

fix: return device's primary ip for netbox services not explicitly bound to any IP#224

Open
koalajoe23 wants to merge 1 commit into
FlxPeters:mainfrom
koalajoe23:service_default_ipaddress
Open

fix: return device's primary ip for netbox services not explicitly bound to any IP#224
koalajoe23 wants to merge 1 commit into
FlxPeters:mainfrom
koalajoe23:service_default_ipaddress

Conversation

@koalajoe23
Copy link
Copy Markdown
Contributor

Describe your changes

When a service has no explicit IP set, the "ipaddresses" label will not be set. A service with no explicit IP set will probably listen on all interfaces, so the primary IP should be returned. That way, "ipaddresses" can be used to get a valid IP to connect to that service regardless of configuration.

Issue ticket number and link

N/A

Checklist before requesting a review

  • I have performed a self-review of my code
  • If it is a core feature, I have added thorough tests.

@github-actions
Copy link
Copy Markdown

This pull request has been marked as stale because it has been inactive for more than 60 days.
Please update this pull request or it will be automatically closed in 7 days.

@github-actions github-actions Bot added the Stale label Sep 24, 2025
@koalajoe23
Copy link
Copy Markdown
Contributor Author

@FlxPeters Please take at look and respond

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant