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

Make backend device checking more robust #5730

Merged
merged 5 commits into from
Nov 10, 2020

Conversation

theasianpianist
Copy link
Contributor

@theasianpianist theasianpianist commented Oct 28, 2020

- How I did it

  • Treat devices that are ToRRouters (ToRRouters and BackEndToRRouters) the same when rendering templates
    • Except for BackEndToRRouters belonging to a storage cluster, since these devices have extra sub-interfaces created
  • Treat devices that are LeafRouters (LeafRouters and BackEndLeafRouters) the same when rendering templates
    - How to verify it

- Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

@theasianpianist theasianpianist marked this pull request as ready for review October 28, 2020 22:20
@theasianpianist
Copy link
Contributor Author

retest vsimage please

1 similar comment
@theasianpianist
Copy link
Contributor Author

retest vsimage please

prsunny
prsunny previously approved these changes Oct 30, 2020
Copy link
Contributor

@prsunny prsunny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm.. Wait for @lguohan 's approval

@theasianpianist
Copy link
Contributor Author

retest vsimage please

2 similar comments
@theasianpianist
Copy link
Contributor Author

retest vsimage please

@theasianpianist
Copy link
Contributor Author

retest vsimage please

@@ -30,7 +30,7 @@ dependent_startup=true
{# Router advertiser should only run on ToR (T0) devices which have #}
{# at least one VLAN interface which has an IPv6 address asigned #}
{%- set vlan_v6 = namespace(count=0) -%}
{%- if DEVICE_METADATA.localhost.type == "ToRRouter" -%}
{%- if "ToRRouter" in DEVICE_METADATA.localhost.type -%}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems to me some behaviorial change if the device is MgmtTorRouter. I am not saying this is not a good change, but maybe you want to confirm with @sumukhatv on M0 device.

{%- set filename_postfix = 't0' %}
{%- elif switch_role.lower() == 'leafrouter' %}
{%- elif 'leafrouter' in switch_role.lower() %}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you check if this will have impact on MgmtTorRouter. it should not have any buffer configuration, I mean should not have any impact. But I am not 100% sure.

@prsunny prsunny requested a review from sumukhatv November 5, 2020 21:01
@prsunny prsunny merged commit d0f16c0 into sonic-net:master Nov 10, 2020
abdosi pushed a commit that referenced this pull request Nov 14, 2020
Treat devices that are ToRRouters (ToRRouters and BackEndToRRouters) the same when rendering templates
 Except for BackEndToRRouters belonging to a storage cluster, since these devices have extra sub-interfaces created
Treat devices that are LeafRouters (LeafRouters and BackEndLeafRouters) the same when rendering templates

Signed-off-by: Lawrence Lee <[email protected]>
santhosh-kt pushed a commit to santhosh-kt/sonic-buildimage that referenced this pull request Feb 25, 2021
Treat devices that are ToRRouters (ToRRouters and BackEndToRRouters) the same when rendering templates
 Except for BackEndToRRouters belonging to a storage cluster, since these devices have extra sub-interfaces created
Treat devices that are LeafRouters (LeafRouters and BackEndLeafRouters) the same when rendering templates

Signed-off-by: Lawrence Lee <[email protected]>
@theasianpianist theasianpianist deleted the backend-device-role branch May 13, 2021 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants