pypxe / PyPXE

Pure Python PXE (DHCP-(Proxy)/TFTP/HTTP/NBD) Server
MIT License
539 stars 125 forks source link

Being able to interact programatically with DHCP/TFTP #184

Open jcea opened 4 years ago

jcea commented 4 years ago

I would like to be able to define some callbacks in the DHCP/TFTP code. Examples:

I could volunteer if you are interested in those features. I need them for my own purposes.

icb- commented 4 years ago

PyPXE isn't meant to be a general purpose DHCP system, but I can see these being useful for its purpose.

  1. Replying to some clients can somewhat be done with --dhcp-whitelistwhitelist and --static-config, if you enumerate the clients you want to reply to. This is how I use it.
  2. Programatic control over vendor options would be useful. I would happily accept a PR.
  3. Programatic TFTP/HTTP responses would be useful. I would happily accept a PR. I want to keep this lightweight, but maybe something like the routes in Bottle with fewer verbs (only GET) implemented for TFTP and HTTP.