[TF] Fix public network routing issue
Related: PRODX-48190
Change-Id: Ie6eaaafb39b6e9654a12a20927181b541f2f899d
diff --git a/de/heat-templates/scripts/functions.sh b/de/heat-templates/scripts/functions.sh
index 2620235..d923071 100644
--- a/de/heat-templates/scripts/functions.sh
+++ b/de/heat-templates/scripts/functions.sh
@@ -751,11 +751,13 @@
- ${PUBLIC_INTERFACE}
- veth-br
EOF
-if [[ ${NODE_METADATA} == *"tempest"* ]]; then
+if [[ ${NODE_METADATA} == *"tempest"* ]] || [[ "${TUNGSTENFABRIC_ENABLED,,}" == true ]]; then
cat << EOF >> ${cloud_netplan_cfg}
addresses:
- ${PUBLIC_NODE_IP_ADDRESS}/${PUBLIC_NODE_IP_NETMASK}
EOF
+fi
+if [[ ${NODE_METADATA} == *"tempest"* ]]; then
# Assign more ips for neutron dynamic routing PRODX-31417
for i in {71..76}; do
cat << EOF >> ${cloud_netplan_cfg}