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

Add auto detect of generated MACs from XEN and other HyperVisors #68

Open
marl-scot opened this issue Jun 22, 2020 · 0 comments
Open

Add auto detect of generated MACs from XEN and other HyperVisors #68

marl-scot opened this issue Jun 22, 2020 · 0 comments

Comments

@marl-scot
Copy link

Have been trying to find a way to make Glass show a vendor string of 'XEN Guest' (or 'Generated' for a more generic network) for any MAC addresses that have the 1st and 2nd bits of the first byte set to indicate a software generated address.
Under the 'MAC addresses' section on : https://wiki.xenproject.org/wiki/Xen_Networking
You can see that bit 2 being set of the first byte being set should indicate a locally administered MAC and bit 1 one being cleared indicates no-multicast (not sure if this bit should be checked or not!).
Idea is to check if the MAC has been found, and if not, then check for at least bit 2 being set and if so, set the vendor to 'XEN Guest' (the string could be anything, as I only use XEN in my network, then this makes sense to my system)
Another option, although more complicated would be to allow configuring a set of regexes in the glass config file that would be matched against MAC addresses if vendor can't be found.
If anyone could look at this, that would be great, or even point me to the files/lines that I would need to modify for the basic change would be great, although I am a PHP dev, and have no node/perl experience!)

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

No branches or pull requests

1 participant