Skip to content

Commit

Permalink
Output of version from sonic-cfggen
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Shirshov committed Jul 1, 2020
1 parent 40de223 commit e999a3a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions src/sonic-bgpcfgd/tests/test_sonic-cfggen.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ def run_test(name, template_path, json_path, match_path):


def test_bgpd_main_conf_base():
import jinja2
assert False, jinja2.__version__
run_test("Base bgpd.main.conf.j2",
"bgpd/bgpd.main.conf.j2",
"bgpd.main.conf.j2/base.json",
Expand Down
1 change: 1 addition & 0 deletions src/sonic-config-engine/sonic-cfggen
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ def main():
for attr in ['ip', 'network', 'prefixlen', 'netmask', 'broadcast']:
env.filters[attr] = partial(prefix_attr, attr)
template = env.get_template(template_file)
assert False, jinja2.__version__
print(template.render(sort_data(data)))

if args.var != None:
Expand Down

0 comments on commit e999a3a

Please sign in to comment.