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

[opensprinkler] fix hardcoded network prefix in discovery service #8456

Merged
merged 16 commits into from
Sep 12, 2020

Conversation

mlobstein
Copy link
Contributor

@mlobstein mlobstein commented Sep 11, 2020

I used this in #7568 and it was suggested to make the prefix dynamic instead of just hard coding for /24 networks. If the user is not on a /24 network (such as 10.x.x.x), the discovery might fail to locate an active device. I am changing it here also to be consistent with all the other bindings that use this pattern of getting the list of all addresses in the subnet for discovery scans.

@TravisBuddy
Copy link

Travis tests were successful

Hey @mlobstein,
we found no major flaws with your code. Still you might want to look at this logfile, as we usually suggest some optional improvements.

Copy link
Contributor

@cpmeister cpmeister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cpmeister cpmeister merged commit a41dfc9 into openhab:2.5.x Sep 12, 2020
CSchlipp pushed a commit to CSchlipp/openhab-addons that referenced this pull request Sep 12, 2020
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
@wborn wborn added this to the 2.5.9 milestone Sep 18, 2020
markus7017 pushed a commit to markus7017/openhab-addons that referenced this pull request Sep 19, 2020
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Oct 8, 2020
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
@mlobstein mlobstein deleted the opensprinkler_networkprefix branch November 6, 2020 21:41
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.

4 participants