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

Awareness Script monitors switch interface, not client interface #10

Open
rafaelscheel opened this issue Feb 24, 2025 · 1 comment
Open
Assignees

Comments

@rafaelscheel
Copy link
Contributor

We currently monitor the connection to the Switch (NETWORK_STATE_INTERFACE=cat "/sys/class/net/$INTERFACE/carrier"). If THRESHOLD_DOWN * TIMER is reached, we reset the setup.

I was wondering if this is the behavior you are looking for. In our environments it is more common that the client side is changes and thus this side should be monitored (e.g. because the computer is shut down or another laptop is plugged in).

It is not a disaster to not reset the script in this case. The only real impact is that we imitate the MAC of the initial plugged in client instead of updating the MAC to the new one. There will be issues if the client is plugged into the same Swicht but on a different port (which is common with mobile workplaces).

@0x6d69636b 0x6d69636b self-assigned this Feb 25, 2025
@0x6d69636b
Copy link
Member

Um, good question. I need to set up a test environment and get back to you after running some tests

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

No branches or pull requests

2 participants