-
Notifications
You must be signed in to change notification settings - Fork 367
T7364: Fixing Route reflector client check not working for peer-group #4452
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
base: current
Are you sure you want to change the base?
Conversation
👍 |
My bad, just fixed it |
Smoketest does not like your changes :)
|
Just looked into it quickly, seems to be because the fix i did is only working when using the route reflector client on the neighbor directly, not in a peer group, i'll check if i can add a condition to fix it |
Should be fixed, when changing the condition, there was no check if we were in a peer group, so it tried to find the peer group of a peer group to find the ASN, failing to do so and exiting the if. elif neighbor == 'peer_group':
peer_group_as = peer_config.get('remote_as') |
CI integration ❌ failed! Details
|
The failing in the tests seems unrelated :
def test_ethtool_evpn_uplink_tracking(self):
for interface in self._interfaces:
self.cli_set(self._base_path + [interface, 'evpn', 'uplink'])
self.cli_commit()
for interface in self._interfaces:
frrconfig = self.getFRRconfig(f'interface {interface}', endsection='^exit')
self.assertIn(' evpn mh uplink', frrconfig) Maybe a change in current that affected the tests ? |
It's a false positive caused by a timing error when reading back the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes the route reflector client validation when using a peer-group in BGP configurations. The changes update variable names and the conditional logic to correctly validate the remote AS values from both the peer and its peer-group.
- Rename variable from peer_group_as to peer_as for clarity.
- Adjust conditional checks to verify remote AS values correctly.
- Add a fallback check into the peer group if the direct check does not pass.
Comments suppressed due to low confidence (1)
src/conf_mode/protocols_bgp.py:422
- The variable 'peer_group' is not defined in this context. Consider using 'peer_config["peer_group"]' to retrieve the peer group name before passing it to dict_search.
peer_group_as = dict_search(f'peer_group.{peer_group}.remote_as', bgp)
Change summary
Fixing the route reflector client check in order for it to work when using a peer-group
Types of changes
Related Task(s)
https://vyos.dev/T7364
Related PR(s)
None
How to test / Smoketest result
Create a peer group, add a neighbour using this peer group and try to add the route-reflector-client attribute.
Checklist: