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

Adding BFD Enhancements #3838

Closed
wants to merge 1 commit into from

Conversation

SumitAgarwal123
Copy link

- What I did

BFD Enhancements as per HLD
https://github.com/Azure/SONiC/blob/master/doc/bfd/BFD_Enhancement_HLD.md

- How I did it

As explained in HLD, submitting a patch

- How to verify it
Verified on local setup

- Description for the changelog

@SumitAgarwal123
Copy link
Author

link to original PR
#3385

@pavel-shirshov pavel-shirshov self-assigned this Dec 9, 2019
cmd = cmd + ' interface ' + key_params[2]
if not data:
#BFD peer is deleted
command = "vtysh -c 'configure terminal' -c 'bfd' -c 'no {}'".format(cmd)
Copy link
Collaborator

Choose a reason for hiding this comment

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

better to use list. otherwise, the run_command may fail.

command = command + " -c 'no shutdown'"
elif param == 'admin_status' and data[param] == 'down':
command = command + " -c 'shutdown'"
run_command(command)
Copy link
Contributor

Choose a reason for hiding this comment

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

Please put all this logic into a template and use vtysh -f. Please check other examples.

+ BFD_SET_CLIENT_STATUS(bfd_info->status, status);
monotime(&tv);
bfd_info->last_update = tv.tv_sec;

Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need this change?

Copy link
Author

Choose a reason for hiding this comment

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

Scenarios where this code change is required:

BFD is un-configured from BGP at remote end.
Neighbour BFD sends ADMIN_DOWN state, but BFD on local side will send
DOWN to BGP, resulting in BGP session DOWN.
Removing BFD session administratively shouldn't bring DOWN BGP session
at local or remote.

BFD is un-configured from BGP or shutdown locally.
BFD will send state DOWN to BGP resulting in BGP session DOWN.
(This is akin to saying do not use BFD for BGP)
Removing BFD session administratively shouldn't bring DOWN BGP session at
local or remote.

@SumitAgarwal123
Copy link
Author

Abandoning this since FRR code here have moced to newer versions

@stephenxs
Copy link
Collaborator

Hi @SumitAgarwal123,
Will BFD be supported in 202012 or next release?

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.

3 participants