-
-
Notifications
You must be signed in to change notification settings - Fork 186
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
OMADA SDN plugin #708
Comments
Hey @FlyingToto, Let's continue the discussion here. I've prepared a skeleton for you, here is how you load the plugin:
I already added Hope this gives you a good starting point. Ask away if you need help. Once the data is collected/processed correctly, it should show up here: I've added more system columns, but they are not yet visible (SItename, SSID), and not sure if I didn't break something, but you should be OK working on the files in the To answer your previous questions:
|
ok I will work on it on monday. |
Thanks, looking forward!
Hope this helps. |
The more I think about it the more it makes sense to store SSID in the port field... |
one thing a bit different is that on a switch port you only have 1 device, but on an Access Point SSID you can have multiple.... |
Hummm, just one FYI, the port is stored on the device that connects to that port, so if you store the SSID it's stored on the Device that connects to the SSID, not the router/AP. Maybe storing the current SSID of the device is sufficient. ANyway, those are implementation details and we can fine tune it once the main import is working :) |
ok I figured it out, I updated the docker-compose.yml file to container_name: netalertxdev now I got my second instance running.... will try to add my code to it... |
@FlyingToto great job! I have the following setup: Download the code:
#--------------------------------
#NETALERTX
#--------------------------------
TZ=Europe/Berlin
PORT=22222
DEV_LOCATION=/development/NetAlertX
APP_DATA_LOCATION=/volume/docker_appdata
APP_CONFIG_LOCATION=/volume/ I create a folder Lastly I run the container:
You can then modify the python script without restarting/rebuilding the container every time. Additionally, you can run the script via the UI: |
yep all good now... just trying to figure out the python calls... |
Just FYI, maybe you'll find this useful: Removing the container and imageA command to stop, remove the container and the image (replace
Restart hanging python scriptSSH into the container and kill & restart the main script loop
|
Would it be possible to setup a zoom/discord call? (I am in US timezone, usually I can find time during my afternoons I am currently able to:
I need a bit of help:
Example of my current tokens:
4.c.i. Field1 MAC -> no updates since it is used for the lookup. 4.c.ii. Field2 IP -> overwrite (I assume omada would always know better, however what if someone runs multiple IPs on the same MAC? ) 4.c.iii. Field3 Hostname -> overwrite unless O_Hostname matches MAC and existing Ndevice_Hostname is not blank 4.c.iv. Field5 4.c.v. Field4 |
Sounds like good progress. Happy to chat, can you send an email to jokob.sk@gmail.com and we can set something up 👍 In short however, you don't have to worry about when to overwrite device info. If you map the fields in this step, the application automatically does the rest.
Currently most of the fields are overwritten with new information, as far as I remember. Exceptions include Device name and I think vendor. Everything else is overwritten if a value is passed from a plugin. Here is the code responsible for updating devices (I don't think you need to modify this part, just as a FYI) Line 243 in 5514cf0
|
ok so it is moving a bit....
questions:1. should we store the SSID in watched4? or just reuse watched3?
3. when an omada-controlled swtich is connected to another non-omada switch itself connecte to multiple devices, they all show up under the same port. I assume it won't break anything even though you would have multiple devices all connected to a single port?
|
Great to hear that! :)
|
hum... so it is not quite working yet...
note: will email you the logs , script and last_result directly... here is the main loop code:
|
Releasing -> closing |
Good afternoon,
Any "easy" way to integrate with omada SDN? this is an example of data that we can pull from omada:
omada also has the notion of "sites" which basically divides networks into multiple locations like and the scan is on a per-site basis.
omada_username="CHANGEME_mrpotatoe"
omada_password="CHANGEME_lfdaruiRWGFD335qw324z"
omada_site="CHANGEME_homesweethome"
omada_url="https://CHANGEME_omada.mylocaldomain"
omada -t myomada target --url $omada_url --user $omada_username --password $omada_password --site $omada_site --set-default
omada clients
Originally posted by @FlyingToto in #707
The text was updated successfully, but these errors were encountered: