Skip to content

Commit 57f80f0

Browse files
saiarcot895gshemesh2
authored andcommitted
Ignore router advertisements in PTF (sonic-net#20113)
Ignore any router advertisements sent by a DUT, and don't set a default route or an address based on it. This could happen if a T0 testbed with radv running sends router advertisements on a VLAN interface, which may result in the PTF container adding a default route on all of the VLAN interfaces. This could result in some IPv6 test cases breaking. Signed-off-by: Saikrishna Arcot <[email protected]> Signed-off-by: Guy Shemesh <[email protected]>
1 parent 2a8bded commit 57f80f0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ansible/roles/vm_set/tasks/add_topo.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,10 @@
190190
command: docker exec -i ptf_{{ vm_set_name }} sysctl -w net.ipv6.route.max_size=168000
191191
become: yes
192192

193+
- name: Don't accept ipv6 router advertisements for docker container ptf_{{ vm_set_name }}
194+
command: docker exec -i ptf_{{ vm_set_name }} sysctl -w net.ipv6.conf.default.accept_ra=0
195+
become: yes
196+
193197
- name: Create file to store dut type in PTF
194198
command: docker exec -i ptf_{{ vm_set_name }} sh -c 'echo {{ hostvars[duts_name.split(',')[0]]['type'] }} > /sonic/dut_type.txt'
195199
when:

0 commit comments

Comments
 (0)