Update iptables during osm installation only if LXD is installed
[osm/devops.git] / installers / full_install_osm.sh
index 8d56663..21a654d 100755 (executable)
@@ -544,7 +544,10 @@ function install_osm() {
     add_local_k8scluster
     track final_ops add_local_k8scluster_ok
 
-    arrange_docker_default_network_policy
+    # if lxd is requested, iptables firewall is updated to work with both docker and LXD
+    if [ -n "$INSTALL_LXD" ]; then
+        arrange_docker_default_network_policy
+    fi
 
     wget -q -O- https://osm-download.etsi.org/ftp/osm-15.0-fifteen/README2.txt &> /dev/null
     track end