Skip to content
Discussion options

You must be logged in to vote

Step 1 is supported: devices can register using the shared secret of a generic organization.

Step 2 requires a routing rule defined by the deployment. OpenWISP cannot infer the intended organization when every device registers with the same shared secret. If you can express an internal rule that distinguishes devices, you can implement it with a receiver for the device_registered signal.

The following example routes a newly registered device from the generic organization to organization 2 when its MAC address starts with 00:11:22, otherwise to organization 3. Replace the UUIDs and MAC prefix with the values and rule used in your deployment.

# organization_routing.py
from uuid import UUID

f…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dberardo-com
Comment options

Answer selected by dberardo-com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants