HenriWahl / dhcpy6d

MAC address aware DHCPv6 server written in Python
https://dhcpy6d.de
GNU General Public License v2.0
94 stars 27 forks source link

Add support for Option 59 (RFC 5970) #17

Closed FelixJacobi closed 5 years ago

FelixJacobi commented 5 years ago

This adds support for Option 59 as descriped in #16. A new bootfile section is introduced in configuration, which looks like this:

[bootfile_eth1_ipxe]
bootfile_url = tftp://[fdbd:66a9:ca20:7afd:0000:0aff:fe46:fb00]/efi32/default.ipxe
client_architecture = 0009
user_class = iPXE

The bootfile sections can be referenced from classes:

[class_eth1]
addresses = eth1
bootfiles = eth1_ipxe eth1_efi64 eth1_efi32 eth1_efibc
[...]

The first entry which have a matching user_class and client_architecture value is chosen.

TODO:

HenriWahl commented 5 years ago

May I merge or do you plan to add more? Like documentation in manpages?

FelixJacobi commented 5 years ago

I think before this is merged, I will add some documentation to the manpages.

FelixJacobi commented 5 years ago

I think before this is merged, I will add some documentation to the manpages.

Will take a few days, as I am on vacation next week, I will report back, when I have finished and remove the WIP from the PR's title.

HenriWahl commented 5 years ago

Hi - did you make any progress so I could pull?

FelixJacobi commented 5 years ago

Hi,

Unfortunaly not, as I was involved in other important projects. I will work again on it starting this weekend and I am hoping to finish it within the four next weeks.

FelixJacobi commented 5 years ago

I think I will finish this evening.

FelixJacobi commented 5 years ago

Added manpage documentation and basic config validation.

Should be done, in my opinion. Feel free to merge, if there are no issues with the changes.

HenriWahl commented 5 years ago

Thanks!