Skip to content
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

Handle dual ToR neighbor miss scenario #2151

Merged
merged 8 commits into from
Aug 20, 2022

Commits on Feb 19, 2022

  1. Handle dual ToR neighbor miss scenario (sonic-net#2137)

    - When orchagent receives a neighbor update with a zero MAC:
        - If the neighbor IP is configured for a specific mux cable port in the MUX_CABLE table in CONFIG_DB, handle the neighbor normally (if active for the port, no action is needed. if standby, a tunnel route is created for the neighbor IP)
        - If the neighbor IP is not configured for a specific port, create a tunnel route for the IP to the peer switch.
            - When these neighbor IPs are eventually resolved, remove the tunnel route and handle the neighbor normally.
    - When creating/initializing a mux cable object, set the internal state to standby to match the constructor behavior.
    
    - Various formatting fixes inside test_mux.py
    - Remove references to deprecated `@pytest.yield_fixture`
    - Add dual ToR neighbor miss test cases:
        - Test cases and expected results are described in `mux_neigh_miss_tests.py`. These descriptions are used by the generic test runner `test_neighbor_miss` function to execute the test actions and verify expected results
        - Various setup fixtures and test info fixtures were added
        - Existing test cases were changed to use these setup fixtures for consistency
    
    Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
    Co-authored-by: Sumukha Tumkur Vani <stumkurv@microsoft.com>
    theasianpianist and Sumukha Tumkur Vani committed Feb 19, 2022
    Configuration menu
    Copy the full SHA
    17ae951 View commit details
    Browse the repository at this point in the history

Commits on May 25, 2022

  1. Configuration menu
    Copy the full SHA
    66b5055 View commit details
    Browse the repository at this point in the history

Commits on May 26, 2022

  1. oops

    Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
    theasianpianist committed May 26, 2022
    Configuration menu
    Copy the full SHA
    4708357 View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2022

  1. Configuration menu
    Copy the full SHA
    a72d155 View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2022

  1. [vstest]: Fix mux test merge

    Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
    theasianpianist committed Jul 30, 2022
    Configuration menu
    Copy the full SHA
    579c31e View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2022

  1. Configuration menu
    Copy the full SHA
    06113a3 View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2022

  1. [test_nhg]: Start fake MACs from 01

    Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
    theasianpianist committed Aug 19, 2022
    Configuration menu
    Copy the full SHA
    7252b28 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'dualtor-neigh-miss' of github.com:theasianpianist/sonic…

    …-swss into dualtor-neigh-miss
    theasianpianist committed Aug 19, 2022
    Configuration menu
    Copy the full SHA
    c8c7e82 View commit details
    Browse the repository at this point in the history