Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions ansible/roles/test/tasks/arpall.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@
delegate_to: "{{ ptf_host }}"

- name: Clear DUT arp cache
command: ip nei flush all
command: ip -stats neigh flush all
ignore_errors: yes
become: yes

- name: Start PTF runner and Send correct unicast arp packets (10.10.1.3 to 10.10.1.2 with src_mac=00:06:07:08:09:00)
Expand All @@ -99,7 +100,8 @@
- "{{ arptable['v4']['10.10.1.3']['interface'] == intf1 }}"

- name: Clear DUT arp cache
command: ip nei flush all
command: ip -stats neigh flush all
ignore_errors: yes
become: yes

# Send correct ARP request from correct interface, expecting normal behavior
Expand Down Expand Up @@ -127,7 +129,8 @@

## check DUT won't reply ARP and install ARP entry when ARP request coming from other interfaces
- name: Clear DUT arp cache
command: ip nei flush all
command: ip -stats neigh flush all
ignore_errors: yes
become: yes

- name: Send correct arp packets from other interface expect no reply(10.10.1.4 to 10.10.1.2 with src_mac=00:02:07:08:09:0a)
Expand All @@ -154,7 +157,8 @@

## check DUT won't reply ARP and install ARP entry when src address is not in interface subnet range
- name: Clear DUT arp cache
command: ip nei flush all
command: ip -stats neigh flush all
ignore_errors: yes
become: yes

- name: Send Src IP out of interface subnet range arp packets, expect no reply and no arp table entry (10.10.1.22 to 10.10.1.2 with src_mac=00:03:07:08:09:0a)
Expand All @@ -181,7 +185,8 @@

## Test Gratuitous ARP behavior, no Gratuitous ARP installed when arp was not resolved before
- name: Clear DUT arp cache
command: ip nei flush all
command: ip -stats neigh flush all
ignore_errors: yes
become: yes

- name: Send garp packets (10.10.1.7 to 10.10.1.7)
Expand Down