You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[frr] fix pfx_filter to fix bgpd.conf.j2 rendering when no vlan
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 <[email protected]>
0 commit comments