Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion hack/prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ set -Eeuo pipefail
OPT_MULTIPORT=false
OPT_SYNC_BRIDGE=false
OPT_ALLOW_ULA=false
OPT_NODE_IP=""

BLUEFIELD_IDENTIFIERS=("MT_0000000543" "MT_0000000541")
MAX_NUMVFS_POSSIBLE=126
Expand Down Expand Up @@ -361,7 +362,7 @@ function make_config() {
conf_pf0="$(get_ifname 0)"
conf_pf1="$(get_ifname 1)"
conf_vf_pattern="$(get_pattern "${devs[0]}")"
conf_ipv6="$(get_ipv6)"
conf_ipv6=${OPT_NODE_IP:-$(get_ipv6)}

{ echo "# This has been generated by prepare.sh"
echo "no-stats"
Expand Down Expand Up @@ -438,6 +439,10 @@ while [[ $# -gt 0 ]]; do
--allow-ula)
OPT_ALLOW_ULA=true
;;
--node-ip)
shift
Comment thread
PlagueCZ marked this conversation as resolved.
OPT_NODE_IP="$1"
;;
*)
err "Invalid argument $1"
esac
Expand Down
Loading