Bf.cfg upcoming changes

Hi,

been working on configuration automation of BlueField nic using the bf.cfg file.

From latest HBN deployment guide [1], there is a warning about upcoming file structure change; where do we find this new file structure documentation ?

also, it would apear that running customization are not working,

from:

ENABLE_SFC_HBN=yes
NUM_VFs_PHYS_PORT0=2 # <num VFs supported by HBN on Physical Port 0> (valid range: 0-127) Default 14
NUM_VFs_PHYS_PORT1=2 # <num VFs supported by HBN on Physical Port 1> (valid range: 0-127) Default 0
ubuntu_PASSWORD='<blablabla>'
BMC_PASSWORD="<blablabla>"
BMC_USER="root"
BMC_REBOOT="yes"
NEW_UEFI_PASSWORD="<blablabla>"
bfb_modify_os()
{
        log ===================== bfb_modify_os =====================
        log "change hostname"
        sudo sed -i '1s/$/ bf3-01/' /etc/hosts
        sudo hostnamectl hostname bf3-01
        sudo echo bf3-01 > /etc/hostname
        log "set DNS"
        sudo resolvectl dns oob_net0 8.8.8.8 8.8.4.4
}
bfb_post_install()
{
        log ===================== bfb_post_install =====================
        sudo sed -i '1s/$/ bf3-01/' /etc/hosts
        sudo echo bf3-01 > /etc/hostname
        sudo hostnamectl hostname bf3-01
}

none of the changes from bfb_post_install() and bfb_modify_os are being applied after the reboot of BF3 nic. Variables are handle since passwords get changed.

where is bf.cfg capabilities are documented ? complete guide in Customizing BlueField Software Deployment - NVIDIA Docs do not explain upcoming new changes to yaml format

[1] HBN Service Deployment - NVIDIA Docs

Regards,

Hi,

Thanks for your questions.

The full list of supported parameters is in the link you mentioned:

Customizing BlueField Software Deployment - NVIDIA Docs

Regarding the functions you added, according to the documentation:

When to Use Each Function
Function When Called Filesystem State What You Can Do
bfb_pre_install() Before partitioning Not yet created Pre-install logic only
bfb_modify_os() After extraction Mounted at /mnt Modify files (use /mnt/… paths)
bfb_post_install() Before reboot Unmounted Run scripts that don’t touch filesystem

Best Regards,

Anatoly