Skip to content

Instantly share code, notes, and snippets.

@ollyg
Last active November 10, 2022 22:18
Show Gist options
  • Save ollyg/02f3e7d3fbad5e8af7b92f4fe3a13645 to your computer and use it in GitHub Desktop.
Save ollyg/02f3e7d3fbad5e8af7b92f4fe3a13645 to your computer and use it in GitHub Desktop.
macsuck submit API
PUT http://localhost:5000/api/v1/action/macsuck/192.0.2.1?enqueue=true&timestamp=now
port
mac
vlan?
params - "not part of the resource itself" so OK for query string
cannot use macsuck_no because then job refuses to run
but will rows be removed by snmp job exec?
skip is_macsuckable_now in check phase
use early phase to gather data or skip if in `extra` or `port` (mnemonic: path), use store to store.
or use port param for timestamp (mnemonic stamP) and extra for the data
how to put timestamp in the job data or at CLI?
add to the tuple for each node? can ignore for cli, ask user to put it in
how to avoid running snmp workers on the job
should it work on pseudo device?
check early main user store late
netdisco priority higher than all others = API or CLI submission of data
still need a way to skip snmp driver in scheduler if not wanted, eg arpnip
arpnip_no, as above
need to review the transport needed flag/checks
error status return does not nuke next driver option. should it?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment