Update iptables during osm installation only if LXD is installed 55/14155/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 22 Jan 2024 11:56:21 +0000 (12:56 +0100)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 22 Jan 2024 11:56:21 +0000 (12:56 +0100)
Change-Id: I8ed050bf3b402d37cd9897eafc70dc0fa4298028
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
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