aboutsummaryrefslogtreecommitdiffstats
path: root/resources/templates/vm
diff options
context:
space:
mode:
authorJuraj Linkeš <juraj.linkes@pantheon.tech>2020-10-16 12:57:08 +0200
committerPeter Mikus <pmikus@cisco.com>2020-10-19 09:20:08 +0000
commit94e9a913b562f9f0ebe3ed75ce519b51ee75bde7 (patch)
tree83a879791999827d7d2db0ee3d0ac2151e2a384b /resources/templates/vm
parent1c14952a05b77e96eff4bba9d63f17947440294a (diff)
FIX: disable sending IPv6 RA messages from VMs
There were occasional Router Advertisement packets received in a Traffic Generator in VM testcases. Fix by adding config that disables sending IPv6 RA messages on interfaces in VM VPP config before enabling them. Also rename related keywords and change descriptions based on https://docs.fd.io/vpp/21.01/db/d4c/clicmd_src_vnet_ip6-nd.html#clicmd_ip6_nd Change-Id: I1c2a33337ac91f6039d287b4c2aac388e3a52383 Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>
Diffstat (limited to 'resources/templates/vm')
-rw-r--r--resources/templates/vm/vppip6_2vhostvr1024.exec2
-rw-r--r--resources/templates/vm/vppip6_2virtiovr1024.exec3
2 files changed, 5 insertions, 0 deletions
diff --git a/resources/templates/vm/vppip6_2vhostvr1024.exec b/resources/templates/vm/vppip6_2vhostvr1024.exec
index 8545d77761..3ceefbb58f 100644
--- a/resources/templates/vm/vppip6_2vhostvr1024.exec
+++ b/resources/templates/vm/vppip6_2vhostvr1024.exec
@@ -1,7 +1,9 @@
set interface ip address GigabitEthernet0/6/0 1:1::1/64
+ip6 nd GigabitEthernet0/6/0 ra-suppress
set interface state GigabitEthernet0/6/0 up
set interface ip address GigabitEthernet0/7/0 1:2::1/64
+ip6 nd GigabitEthernet0/7/0 ra-suppress
set interface state GigabitEthernet0/7/0 up
ip route add 2001:1::/64 via 1:1::2 GigabitEthernet0/6/0
diff --git a/resources/templates/vm/vppip6_2virtiovr1024.exec b/resources/templates/vm/vppip6_2virtiovr1024.exec
index fd31d40f56..71f2e3db7f 100644
--- a/resources/templates/vm/vppip6_2virtiovr1024.exec
+++ b/resources/templates/vm/vppip6_2virtiovr1024.exec
@@ -3,6 +3,9 @@ set logging class virtio level debug
create interface virtio 0000:00:06.0
create interface virtio 0000:00:07.0
+ip6 nd virtio-0/0/6/0 ra-suppress
+ip6 nd virtio-0/0/7/0 ra-suppress
+
set interface state virtio-0/0/6/0 up
set interface state virtio-0/0/7/0 up