Skip to content

Commit

Permalink
skip "cloud-init based profile but ci_gw4 not set" when DHCP used
Browse files Browse the repository at this point in the history
ci_gw4 not used when cloud-init sets to DHCP. Pointed out: S.N./weldmeup via CBSD Telegram
  • Loading branch information
olevole committed Nov 23, 2023
1 parent 3a24746 commit 9b90fb7
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
9 changes: 8 additions & 1 deletion sudoexec/bcreate
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,14 @@ if [ ${is_cloud} -eq 1 ]; then
ci_ip4_addr="DHCP"
fi
if [ -z "${ci_gw4}" ]; then
${ECHO} "${W1_COLOR}warning: ${N1_COLOR}cloud-init based profile but ci_gw4 not set. VM without gateway?${N0_COLOR}" 2>&1
case "${ci_ip4_addr}" in
[Rr][Ee][Aa][Ll][Dd][Hh][Cc][Pp])
true
;;
*)
${ECHO} "${W1_COLOR}warning: ${N1_COLOR}cloud-init based profile but ci_gw4 not set. VM without gateway?${N0_COLOR}" 2>&1
;;
esac
fi

OIFS="${IFS}"
Expand Down
9 changes: 8 additions & 1 deletion sudoexec/qcreate
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,14 @@ if [ ${is_cloud} -eq 1 ]; then
ci_ip4_addr="DHCP"
fi
if [ -z "${ci_gw4}" ]; then
${ECHO} "${W1_COLOR}warning: ${N1_COLOR}cloud-init based profile but ci_gw4 not set. VM without gateway?${N0_COLOR}" 2>&1
case "${ci_ip4_addr}" in
[Rr][Ee][Aa][Ll][Dd][Hh][Cc][Pp])
true
;;
*)
${ECHO} "${W1_COLOR}warning: ${N1_COLOR}cloud-init based profile but ci_gw4 not set. VM without gateway?${N0_COLOR}" 2>&1
;;
esac
fi

OIFS="${IFS}"
Expand Down
9 changes: 8 additions & 1 deletion sudoexec/xcreate
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,14 @@ if [ ${is_cloud} -eq 1 ]; then
ci_ip4_addr="DHCP"
fi
if [ -z "${ci_gw4}" ]; then
${ECHO} "${W1_COLOR}warning: ${N1_COLOR}cloud-init based profile but ci_gw4 not set. VM without gateway?${N0_COLOR}" 2>&1
case "${ci_ip4_addr}" in
[Rr][Ee][Aa][Ll][Dd][Hh][Cc][Pp])
true
;;
*)
${ECHO} "${W1_COLOR}warning: ${N1_COLOR}cloud-init based profile but ci_gw4 not set. VM without gateway?${N0_COLOR}" 2>&1
;;
esac
fi

OIFS="${IFS}"
Expand Down

0 comments on commit 9b90fb7

Please sign in to comment.