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

[frr] protect template if deployment_id is missing in map when generating dynamic bgp neighbor #6824

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

qiluo-msft
Copy link
Collaborator

Why I did it

This is to protect a corner case: if deployment_id is missing in map when generating dynamic bgp neighbor, the template will generate an incomplete line.

neighbor dyn_name remote-as

How I did it

Remove the whole line in the case.

How to verify it

Pass the sonic-bgpcfgd unit test. Tested the corner case manually

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

  • 201811
  • 201911
  • 202006
  • 202012

Description for the changelog

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

Copy link
Contributor

@abdosi abdosi left a comment

Choose a reason for hiding this comment

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

@qiluo-msft can we can add unit-test case for this ?

Copy link
Contributor

@abdosi abdosi left a comment

Choose a reason for hiding this comment

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

can we add unit-test case for this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants