vpp_device: disable IPv6 in containers 24/29924/6
authorJuraj Linkeš <juraj.linkes@pantheon.tech>
Fri, 13 Nov 2020 09:10:07 +0000 (10:10 +0100)
committerPeter Mikus <pmikus@cisco.com>
Thu, 26 Nov 2020 07:03:29 +0000 (07:03 +0000)
Even with IPv6 nd disabled in VMs, there are IPv6 packets coming from
DuT:
--dut_if2_mac ba:dc:0f:fe:02:05
...
  dst       = 33:33:00:00:00:01
  src       = ba:dc:0f:fe:02:05

Docker disables IPv6 by default on interfaces it manages, which doesn't
include VF interfaces. Disabling IPv6 in containers using sysctl may fix
this.

Change-Id: Idba506653442a3da2cd82e69cedddb3294d92788
Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>
resources/libraries/bash/function/device.sh

index a94244e..d9af5ff 100644 (file)
@@ -611,6 +611,9 @@ function start_topology_containers () {
     dcr_stc_params+="--volume /opt/boot/:/opt/boot/ "
     # Mount host hugepages for VMs.
     dcr_stc_params+="--volume /dev/hugepages/:/dev/hugepages/ "
+    # Disable IPv6.
+    dcr_stc_params+="--sysctl net.ipv6.conf.all.disable_ipv6=1 "
+    dcr_stc_params+="--sysctl net.ipv6.conf.default.disable_ipv6=1 "
 
     # Docker Container UUIDs.
     declare -gA DCR_UUIDS