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

Un-Discoverable plugin issue #807

Closed
2 tasks done
systemik opened this issue Sep 25, 2024 · 5 comments
Closed
2 tasks done

Un-Discoverable plugin issue #807

systemik opened this issue Sep 25, 2024 · 5 comments
Labels
bug 🐛 Something isn't working next release/in dev image🚀 This is coming in the next release or was already released if the issue is Closed.

Comments

@systemik
Copy link

systemik commented Sep 25, 2024

Is there an existing issue for this?

Current Behavior

It seems that devices created by Un-Discoverable plugin are set with a MAC with the same name as the device.

When we then try to assign a device to such dummy device, it fails and the error message states :

[25-Sep-2024 15:15:15 Europe/Berlin] PHP Fatal error: Uncaught Exception: Invalid mac address in /app/front/php/server/devices.php:841

If we manually set a dummy mac address for the dummy device then we can properly assign devices to it.

Expected Behavior

This may be fixed by either creating a dummy mac for the dummy device or by changing the assign code to avoid checking for properly formatted MAC addresses when the device is dummy.

Steps To Reproduce

Create dummy device and try to assign a device to it in the network page.

What branch are you running?

Production

app.log

PHP Fatal error: Uncaught Exception: Invalid mac address in /app/front/php/server/devices.php:841
Stack trace:
#0 /app/front/php/server/devices.php(46): updateNetworkLeaf()
#1 {main}
thrown in /app/front/php/server/devices.php on line 841

  • I have read and followed the steps in the wiki link above and provided the required debug logs and the log section covers the time when the issue occurs.
@systemik systemik added the bug 🐛 Something isn't working label Sep 25, 2024
@systemik
Copy link
Author

When looking at the code, it seems that a random mac should have been generated with the function "string_to_mac_hash" in the undiscoverable device plugin but it does not work as expected it seems.

image

Second issue when there is an invalid mac in the list : most devices are reported offline ...

image

@FlyingToto
Copy link
Contributor

addeddum

Expected Behavior
This may be fixed by preferably by allowing linkage to the device pseudo-MAC similar to way NaX allow to link the root firewall to the internet ISP Gateway under MAC=internet.
or either by creating a dummy/or updatable mac for the dummy device or by changing the assign code to avoid checking for properly formatted MAC addresses when the device is dummy.

jokob-sk pushed a commit that referenced this issue Sep 25, 2024
@jokob-sk jokob-sk added the next release/in dev image🚀 This is coming in the next release or was already released if the issue is Closed. label Sep 25, 2024
@jokob-sk
Copy link
Owner

Thanks for the report and help @systemik , @FlyingToto - this should be fixed in the latest release in ~15 min from now -> Closing

@jokob-sk
Copy link
Owner

@FlyingToto I was thinking of making the mac editable, but I don't yet have UI support for it - so maybe in the future

@FlyingToto
Copy link
Contributor

since they are static, I don't think they would need to be editable in gui per say if in the plugin config page we could load them in one shot.... something like:
from:
mydummydevice
to
mydummydevice, 192.168.12.1, AA:BB:CC:DD:EE:FF, Gateway, ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working next release/in dev image🚀 This is coming in the next release or was already released if the issue is Closed.
Projects
None yet
Development

No branches or pull requests

3 participants