Skip to content

Commit a282897

Browse files
committed
Allow limiting virtual media emulator to one IP family
It's a common case by customers. Requires: - https://review.opendev.org/c/openstack/sushy-tools/+/956904
1 parent 5c33bf9 commit a282897

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

04_setup_ironic.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,10 @@ if [ "$NODES_PLATFORM" = "libvirt" ]; then
228228
"${VBMC_IMAGE}"
229229
fi
230230

231+
if [[ -n "${REDFISH_EMULATOR_VIRTUAL_MEDIA_IP_FAMILY:-}" ]]; then
232+
echo 'SUSHY_EMULATOR_VIRTUAL_MEDIA_IP_FAMILY = "${REDFISH_EMULATOR_VIRTUAL_MEDIA_IP_FAMILY}"' | sudo tee -a "$WORKING_DIR/virtualbmc/sushy-tools/conf.py"
233+
fi
234+
231235
if ! is_running sushy-tools; then
232236
sudo podman run -d --net host --privileged --name sushy-tools --pod ironic-pod \
233237
-v "$WORKING_DIR/virtualbmc/sushy-tools":/root/sushy -v "/root/.ssh":/root/ssh \

config_example.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,12 @@ set -x
440440
#
441441
#export REDFISH_EMULATOR_IGNORE_BOOT_DEVICE=False
442442

443+
# REDFISH_EMULATOR_VIRTUAL_MEDIA_IP_FAMILY
444+
# Instruct the Redfish emulator to accept only virtual media images of the
445+
# provided IP familty.
446+
# Choices: 4, 6
447+
#export REDFISH_EMULATOR_VIRTUAL_MEDIA_IP_FAMILY=
448+
443449
# VM_TPM_EMULATOR -
444450
# Add TPM2.0 emulator to VMs.
445451
# Default is unset

0 commit comments

Comments
 (0)