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

[device/dell] Get Server ports from vlan config #1386

Merged
merged 1 commit into from
Feb 15, 2018

Commits on Feb 9, 2018

  1. [device/dell] Get Server ports from vlan config

    This commit adds new support for dynamic buffer configuration. The cable_length macro is
    updated to return the cable length for server ports. Since the server ports are part of
    VLAN MEMBERS, the macro loops through the VLAN MEMBER ports and returns the cable length
    accordingly. If the port is not part of the SERVER port then it defaults to default cable
    length. The new code in the macro will be executed only if the switch is ToRRouter
    which is connected to the server on one side.
    
    Tested the code by loading minigraph configuration on the switch which had configuration
    for leaf-router as DEVICE NEIGHHOR and server ports in VLAN and ports which are not part of
     either server or leaf router. The dynamically generated buffer.json and config_db.json file
    had the cable_legnth updated accordingly for server ports with "5m" and leafrouter with "40m"
    and unconnected port to default "300m". The redis database also reflects the buffer profile's
     for 5m, 40m and 300m.
    
    Signed-off-by: Harish Venkatraman <Harish_Venkatraman@dell.com>
    Harish Venkatraman authored and Harish Venkatraman committed Feb 9, 2018
    Configuration menu
    Copy the full SHA
    be2fec8 View commit details
    Browse the repository at this point in the history