-
Notifications
You must be signed in to change notification settings - Fork 740
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[test]add more ARP and neighbor-mac tests #303
Conversation
ansible/library/switch_arptable.py
Outdated
@@ -59,7 +102,7 @@ def main(): | |||
if arp_tbl == None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
based on the impl, it can never return None. It can only throw exception, you need to catch exception.
@@ -37,6 +37,36 @@ def runTest(self): | |||
send_packet(self, 1, pkt) | |||
verify_packet(self, exp_pkt, 1) | |||
|
|||
class ExpectUnicastReply(acs_base_test.ACSDataplaneTest): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the function name is confusing.
ExpectUnicatReply mean expect unicast reply. What your function really does is SendUnicastArpRequest, I prefer function name to be VerifyUnicastArpRequest. #Resolved
# - debug: var=arptable | ||
|
||
- fail: msg="cannot find a IPv4 and IPv6 neighbor to change mac address" | ||
when: ( arptable.v4 | length == 0 ) or ( arptable.v6 | length == 0 ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we do not need to fail if there is no neighbor, we can just first create a neigbhor entry.
with_dict: "{{ arptable.v6 }}" | ||
when: | ||
- "'fe80::' not in item.key | lower" | ||
- ('Ethernet' in item.value['interface']) or ('PortChannel' in item.value['interface']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move to v6 section below.
@@ -2,6 +2,9 @@ | |||
# Test run example: | |||
# ansible-playbook -i inventory --limit arc-switch1027 test_sonic.yml -b -e "ptf_host=ptf-1" --tags neighbour | |||
|
|||
- name: Add a new test to test SONiC kernel change neighbor mac address, no ptf neighbor requried | |||
include: neighbour-mac-noptf.yml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's add this to the sonic.yml make it independent of neighour-mac.yml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need later consider mac address change on the vlan interface. |
* msft_github/master: [test]: Add ptf_platform_dir: ptftests to enable more than 32 ports testbed (sonic-net#315) [bgp_speaker]: Support t0-64 topology (sonic-net#316) [Minigraph Templates]: Add new <DhcpRelays> node to Vlans as appropriate (sonic-net#298) [sensors]: Add comment to indicate the sensors data file path [ptf_runner]: Add ptf_platform_dir option to indicate --platform-dir option (sonic-net#304) Make fetch command arguments supported by newer ansible version (sonic-net#310) [arista7260cx3] define t0 116 ports topology [fast-reboot test]: Cosmetic fixes (sonic-net#307) [test]add more ARP and neighbor-mac tests (sonic-net#303) After boot_onie, admin up all bgp interfaces (sonic-net#306) Update README.test.md add test case bgp multipath relax (sonic-net#284) [minigraph]: Remove unnecessary quotes (sonic-net#301)
this PR covers 2 issues: #287; #302