Skip to content

Commit

Permalink
facts: dhcpv6 kea config for tftp boot on ipv6
Browse files Browse the repository at this point in the history
This was as good as we could get during the setup on Scale 21x. Thanks to
Owen, Matt and Clever for getting to this point.

We have continued the conversation around ipv6 tftp boot on the rpi4 via
this github issue:
raspberrypi/firmware#1808 (comment)
  • Loading branch information
sarcasticadmin committed Sep 4, 2024
1 parent 1ba2edc commit 4b4e25d
Showing 1 changed file with 64 additions and 1 deletion.
65 changes: 64 additions & 1 deletion facts/inventory.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,70 @@ def generatekeaconfig(servers, aps, vlans, outputdir):
}
keav6_config = {
"Dhcp6": {
"option-def": [
{
"name": "PXEDiscoveryControl",
"code": 6,
"space": "vendor-40712",
"type": "uint8",
"array": False
},
{
"name": "PXEMenuPrompt",
"code": 10,
"space": "vendor-40712",
"type": "record",
"array": False,
"record-types": "uint8,string"
},
{
"name": "PXEBootMenu",
"code": 9,
"space": "vendor-40712",
"type": "record",
"array": False,
"record-types": "uint16,uint8,string"
}
],
"client-classes": [
{
"name": "rpi-pxe",
"test": "option[client-arch-type].hex == 0x0029",
"option-data":
[
{
"name": "bootfile-url",
"always-send": True,
"data": "tftp://2001:470:f026:503::10/start4.elf"
},
{
"name": "vendor-opts",
"always-send": True,
"data": "40712"
},
{
"name": "PXEBootMenu",
"always-send": True,
"csv-format": True,
"data": "0,17,Raspberry Pi Boot",
"space": "vendor-40712"
},
{
"name": "PXEDiscoveryControl",
"always-send": True,
"data": "3",
"space": "vendor-40712"
},
{
"name": "PXEMenuPrompt",
"always-send": True,
"csv-format": True,
"data": "0,pxe",
"space": "vendor-40712"
}
]
}
],
# First we set up global values
"valid-lifetime": 1440,
"min-valid-lifetime": 1440,
Expand All @@ -529,7 +593,6 @@ def generatekeaconfig(servers, aps, vlans, outputdir):
"data": ','.join([x['ipv6'] for x in servers if x['role'] == 'core'])
},
],
"option-def": [],
"reservations-global": True,
"reservations-in-subnet": False,
"reservations": [],
Expand Down

0 comments on commit 4b4e25d

Please sign in to comment.