-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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] fix pfx_filter in sonic-cfggen #2994
Conversation
I do not see this configuration in the quagga bgpd.conf.j2, not sure why this is not a problem for that? |
@prsunny, it looks like the root cause is this pfx_filter should expect None value. Since pfx_filter is added in many places, I think it is better to fix pfx_filter instead of here.
|
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.
need to fix the root problem. the root cause is the new function introduced in pfx_filter.
interfaces Otherwise: " Traceback (most recent call last): File "/usr/local/bin/sonic-cfggen", line 276, in <module> main() File "/usr/local/bin/sonic-cfggen", line 253, in main print(template.render(sort_data(data))) File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 1008, in render return self.environment.handle_exception(exc_info, True) File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 780, in handle_exception reraise(exc_type, exc_value, tb) File "/usr/share/sonic/templates/bgpd.conf.j2", line 49, in top-level template code {% block vlan_advertisement %} File "/usr/share/sonic/templates/bgpd.conf.j2", line 50, in block "vlan_advertisement" {% for (name, prefix) in VLAN_INTERFACE|pfx_filter %} File "/usr/local/bin/sonic-cfggen", line 96, in pfx_filter for key,val in value.items(): jinja2.exceptions.UndefinedError: 'VLAN_INTERFACE' is undefined " and " root@arc-switch1004:/# vtysh Hello, this is FRRouting (version 7.0.1-sonic). Copyright 1996-2005 Kunihiro Ishiguro, et al. arc-switch1004# show bgp su % BGP instance not found arc-switch1004# root@arc-switch1004:/# cat /etc/frr/bgpd.conf root@arc-switch1004:/# " Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
b7bc4a2
to
30fcbd0
Compare
pfx_filter issue also seen for arp_update:
|
@prsunny, please review. |
Otherwise:
and
Signed-off-by: Stepan Blyschak stepanb@mellanox.com
- What I did
- How I did it
- How to verify it
Run on DUT on topology without VLAN
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)