$CONSOLE_LOG | gzip > "$ERROR_LOG"
if [ -n "${PROJECT}" ]; then
- RELEASE_EMAIL="\${RELEASE_EMAIL}, \${PROJECT}-dev@lists.opendaylight.org"
+ RELEASE_EMAIL="${RELEASE_EMAIL}, ${PROJECT}-dev@lists.opendaylight.org"
fi
file_size=$(du -k "$ERROR_LOG" | cut -f1)
- PARAMS=("-r \"Jenkins <jenkins-dontreply@opendaylight.org>\"")
- PARAMS+=("-s \"$SUBJECT\"")
# Only send emails in production (releng), not testing (sandbox)
if [ "${SILO}" == "releng" ]; then
if [[ "$file_size" -gt 100 ]]; then
# shellcheck disable=SC2034
ATTACHMENT=ATTACHMENT_EXCLUDE
+ eval echo \""${BODY}"\" | mail \
+ -r "Jenkins <jenkins-dontreply@opendaylight.org>" \
+ -s "${SUBJECT}" "${RELEASE_EMAIL}"
else
- PARAMS+=("-a \"$ERROR_LOG\"")
+ eval echo \""${BODY}"\" | mail -a "$ERROR_LOG" \
+ -r "Jenkins <jenkins-dontreply@opendaylight.org>" \
+ -s "${SUBJECT}" "${RELEASE_EMAIL}"
fi
-
- eval echo \""${BODY}"\" | eval mail "${PARAMS[*]}" "${RELEASE_EMAIL}"
-
elif [ "${SILO}" == "sandbox" ]; then
echo "Running in sandbox, not actually sending notification emails"
echo "Subject: ${SUBJECT}"
sudo ip netns exec pnf_ns ifconfig pnf_veth1 up ${EXTNET_PNF_IP}/24;
sudo ovs-vsctl add-port ${PUBLIC_BRIDGE} pnf_veth0;
"
+ # Control Node - set VXLAN TEP IP for Genius Auto TZ
+ ${SSH} ${!CONTROLIP} "
+ sudo ovs-vsctl set O . external_ids:tep-ip=${!CONTROLIP};
+ "
# Control Node - external net internet address simulation
${SSH} ${!CONTROLIP} "
${SSH} $compute_ip "
sudo ovs-vsctl add-port $PUBLIC_BRIDGE $CONTROLPORT -- set interface $CONTROLPORT type=vxlan options:local_ip=$compute_ip options:remote_ip=${!CONTROLIP} options:dst_port=9876 options:key=flow
"
+ #Compute Node - set VXLAN TEP IP for Genius Auto TZ
+ ${SSH} $compute_ip "
+ sudo ovs-vsctl set O . external_ids:tep-ip=${compute_ip};
+ "
done
done