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

Create a bgp-neighbor stats and mount result to metal-core #352

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

majst01
Copy link
Contributor

@majst01 majst01 commented Nov 14, 2024

@majst01 majst01 requested a review from a team as a code owner November 14, 2024 12:07
@majst01 majst01 force-pushed the collect-bgp-neighbor-infos branch 4 times, most recently from 8f0fa8e to 61f103a Compare November 14, 2024 12:47
@majst01 majst01 force-pushed the collect-bgp-neighbor-infos branch from 61f103a to 5c38c3f Compare November 14, 2024 12:54
@majst01 majst01 changed the title Create a bgp-neighbor timer and mount result to metal-core Create a bgp-neighbor stats and mount result to metal-core Nov 14, 2024
Copy link
Contributor

@robertvolkmann robertvolkmann left a comment

Choose a reason for hiding this comment

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

Please move the bgp neighbor stats stuff in a new task and make it optional.

@majst01
Copy link
Contributor Author

majst01 commented Nov 25, 2024

Please move the bgp neighbor stats stuff in a new task and make it optional.

why optional, metal-core will depend on this after the implementation of this feature is finished.

@robertvolkmann
Copy link
Contributor

Please move the bgp neighbor stats stuff in a new task and make it optional.

why optional, metal-core will depend on this after the implementation of this feature is finished.

What is the expected behavior of this feature? What will happen if no BGP state is reported for a port?

@majst01
Copy link
Contributor Author

majst01 commented Nov 25, 2024

Please move the bgp neighbor stats stuff in a new task and make it optional.

why optional, metal-core will depend on this after the implementation of this feature is finished.

What is the expected behavior of this feature? What will happen if no BGP state is reported for a port?

It is reported through metal-api -> metal-metrics-exporter to prevent a switch replace which would loose connectivity to certain machines

@robertvolkmann
Copy link
Contributor

Does that mean I can no longer replace a broken switch with a new one?

@majst01
Copy link
Contributor Author

majst01 commented Nov 25, 2024

Does that mean I can no longer replace a broken switch with a new one?

You can, its all about visibility in the first place.

@robertvolkmann
Copy link
Contributor

So no one is really depending on this feature, and metal-core should be able to function without it. Could you consider making it optional in case we need to disable it in production for any unforeseen reason?

@majst01
Copy link
Contributor Author

majst01 commented Nov 25, 2024

So no one is really depending on this feature, and metal-core should be able to function without it. Could you consider making it optional in case we need to disable it in production for any unforeseen reason?

No, metal-core depends on it with: metal-stack/metal-core#136

Making it optional means more code in metal-core and metalctl, this is a highly useful feature for a stable dataplane and i cannot see any reason why it should not be used.

@robertvolkmann
Copy link
Contributor

It is already optional in metal-core. If bgpNeighborStateFile is empty, no new functionality is called.

@majst01
Copy link
Contributor Author

majst01 commented Nov 25, 2024

This plus the adoption in metal-core are read-only, so no modifications to the switch config are made.

@majst01 majst01 requested a review from mwennrich November 26, 2024 12:33

/usr/bin/vtysh -c "show ip bgp vrf all neighbors json" > "${tmpfile}"

rm -f "${destfile}"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

should be removed, otherwise there might be a short period of time where no file is present

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