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

[config-engine]: Fix bug multiple ports connecting to same neighbor #1005

Merged
merged 1 commit into from
Oct 3, 2017
Merged

[config-engine]: Fix bug multiple ports connecting to same neighbor #1005

merged 1 commit into from
Oct 3, 2017

Commits on Oct 3, 2017

  1. [config-engine]: Fix bug multiple ports connecting to same neighbor

    The current DEVICE_NEIGHBOR format doesn't support multiple different
    ports connecting with same neighbor. Thus the lldpd.conf file is not
    generated correctly, causing missing information for LAG members.
    
    This fix reverts the data structure in the previous version of
    minigraph parser - using local port as the key and remote port/device
    as the value of the map. Sample format is:
    
    DEVICE_NEIGHBOR['Ethernet124'] = {
        'name': 'ARISTA04T1',
        'port': 'Ethernet1/1'
    }
    
    The corresponding unit test in test_cfggen is updated.
    Add one more unit test for lldpd.conf.j2 verification.
    
    Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
    Shu0T1an ChenG committed Oct 3, 2017
    Configuration menu
    Copy the full SHA
    9495b4b View commit details
    Browse the repository at this point in the history