Add disable_ra config to VPP device ansible 60/26260/1
authorjuraj.linkes <juraj.linkes@pantheon.tech>
Tue, 31 Mar 2020 09:59:55 +0000 (11:59 +0200)
committerjuraj.linkes <juraj.linkes@pantheon.tech>
Tue, 31 Mar 2020 09:59:55 +0000 (11:59 +0200)
Router advertisement from linux interfaces in VPP Device TGs could
result in unsolicited packets arriving in DUT which would produce false
negatives.

Change-Id: I121a92310a8fe47f36e253656e126123704efc0a
Signed-off-by: juraj.linkes <juraj.linkes@pantheon.tech>
resources/tools/testbed-setup/ansible/roles/vpp_device/tasks/main.yaml

index 6180300..b93853b 100644 (file)
   tags:
     - load-kernel-modules
 
+- name: VPP_device - Disable ipv6 router advertisement
+  sysctl:
+    name: "net.ipv6.conf.default.accept_ra"
+    value: "0"
+    state: "present"
+    sysctl_file: "/etc/sysctl.d/90-csit.conf"
+    reload: "yes"
+  tags:
+    - set-sysctl
+
+- name: VPP_device - Disable ipv6 router advertisement
+  sysctl:
+    name: "net.ipv6.conf.all.accept_ra"
+    value: "0"
+    state: "present"
+    sysctl_file: "/etc/sysctl.d/90-csit.conf"
+    reload: "yes"
+  tags:
+    - set-sysctl
+
 - name: VPP_device - Copy csit-initialize-vfs.sh
   copy:
    src: "files/csit-initialize-vfs.sh"