-
Notifications
You must be signed in to change notification settings - Fork 151
Changes needed for IPv6 #107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| interface=PROVISIONING_INTERFACE | ||
| bind-dynamic | ||
| enable-tftp | ||
| tftp-root=/shared/tftpboot | ||
| log-dhcp | ||
|
|
||
| enable-ra | ||
|
stbenjam marked this conversation as resolved.
|
||
| ra-param=PROVISIONING_INTERFACE,10 | ||
|
|
||
| dhcp-vendorclass=set:pxe6,enterprise:343,PXEClient | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We sure this is right? I think we're doing does not offer and the arch matches logic in ironic. :\ I would be worried about enterprises differing across NICs
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure, is the concern that other vendors might not use this? I got this value from @derekhiggins initial investigations of getting IPv6 PXE working. There's a note here https://dox.ipxe.org/dhcpv6_8h.html#a24258ff3db7cdd24d6084d5950c87852: |
||
| dhcp-range=DHCP_RANGE | ||
| dhcp-userclass=set:ipxe6,iPXE | ||
| dhcp-option=tag:pxe6,option6:bootfile-url,tftp://IRONIC_URL_HOST/snponly.efi | ||
| dhcp-option=tag:ipxe6,option6:bootfile-url,http://IRONIC_URL_HOST:HTTP_PORT/dualboot.ipxe | ||
|
|
||
| # Disable listening for DNS | ||
| port=0 | ||
|
|
||
| # Disable default router(s) and DNS over provisioning network | ||
| dhcp-option=3 | ||
| dhcp-option=6 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| PROVISIONING_INTERFACE=${PROVISIONING_INTERFACE:-"provisioning"} | ||
|
|
||
| # Wait for the interface or IP to be up, sets $IRONIC_IP | ||
| function wait_for_interface_or_ip() { | ||
| # If $PROVISIONING_IP is specified, then we wait for that to become available on an interface, otherwise we look at $PROVISIONING_INTERFACE for an IP | ||
| if [ ! -z "${PROVISIONING_IP}" ]; | ||
| then | ||
| IRONIC_IP="" | ||
| until [ ! -z "${IRONIC_IP}" ]; do | ||
| echo "Waiting for ${PROVISIONING_IP} to be configured on an interface" | ||
| IRONIC_IP=$(ip -br addr show | grep "${PROVISIONING_IP}" | grep -Po "[^\s]+/[0-9]+" | sed -e 's%/.*%%' | head -n 1) | ||
| sleep 1 | ||
| done | ||
| else | ||
| until [ ! -z "${IRONIC_IP}" ]; do | ||
| echo "Waiting for ${PROVISIONING_INTERFACE} interface to be configured" | ||
| IRONIC_IP=$(ip -br addr show dev $PROVISIONING_INTERFACE | grep -Po "[^\s]+/[0-9]+" | grep -e "^fd" -e "\." | sed -e 's%/.*%%' | head -n 1) | ||
| sleep 1 | ||
| done | ||
| fi | ||
|
|
||
| # If the IP contains a colon, then it's an IPv6 address, and the HTTP | ||
| # host needs surrounding with brackets | ||
| if [[ "$IRONIC_IP" =~ .*:.* ]] | ||
| then | ||
| IPV=6 | ||
| IRONIC_URL_HOST="[$IRONIC_IP]" | ||
| else | ||
| IPV=4 | ||
| IRONIC_URL_HOST=$IRONIC_IP | ||
| fi | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.