drakkar-lig / walt-python-packages

Home of walt-node, walt-server, walt-client and walt-common python packages.
https://walt-project.liglab.fr
BSD 3-Clause "New" or "Revised" License
5 stars 3 forks source link

walt device rescan: communication failure diagnosis should be improved #59

Closed eduble closed 1 year ago

eduble commented 3 years ago

Currently, if SNMP requests fail to reach the switch, it says FAILED (while trying to probe SNMP variant).

We should check if switch IP belongs to "walt-net" or "walt-adm" (if defined). If not, then the switch was probably started before the DHCP service was up on walt-server, and because of that it took a default IP address which is unreachable. We should let the user know about this network issue and advise to reboot the switch. Message may be: FAILED (switch was probably up before walt server, please reset this switch).

We should also try to check IP connectivity, to be able to refine the diagnosis.