Skip to content

Tests of FRR templates which rendered by sonic-cfggen#4875

Merged
pavel-shirshov merged 17 commits intosonic-net:masterfrom
pavel-shirshov:pavelsh/frr_base_template_tests
Jul 2, 2020
Merged

Tests of FRR templates which rendered by sonic-cfggen#4875
pavel-shirshov merged 17 commits intosonic-net:masterfrom
pavel-shirshov:pavelsh/frr_base_template_tests

Conversation

@pavel-shirshov
Copy link
Contributor

@pavel-shirshov pavel-shirshov commented Jul 1, 2020

- Why I did it
To test FRR templates which are rendered by sonic-cfggen

- How I did it
I use sonic-cfggen from the repo with manually prepared source information and manually prepared destination files.

- How to verify it

cd src/sonic-bgpcfgd
python setup.py test 

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

@lguohan
Copy link
Collaborator

lguohan commented Jul 1, 2020

test failure.

@lgtm-com
Copy link

lgtm-com bot commented Jul 1, 2020

This pull request introduces 2 alerts when merging e999a3a into 243268f - view on LGTM.com

new alerts:

  • 1 for Unused local variable
  • 1 for Unreachable code

@pavel-shirshov
Copy link
Contributor Author

Based on my checks, sonic-bgpcfgd uses jinja2-2.11.2, but when sonic-bgpcfgd tests uses subprocess call of sonic-cfggen, it uses jinja2-2.8, which doesn't support our templates.

@lguohan
Copy link
Collaborator

lguohan commented Jul 2, 2020

@pavel-shirshov pavel-shirshov merged commit b72fed7 into sonic-net:master Jul 2, 2020
@pavel-shirshov pavel-shirshov deleted the pavelsh/frr_base_template_tests branch July 2, 2020 14:35
abdosi pushed a commit that referenced this pull request Jul 5, 2020
* Tests of FRR templates which rendered by sonic-cfggen
qiluo-msft pushed a commit to qiluo-msft/sonic-buildimage that referenced this pull request Jul 12, 2020
* Tests of FRR templates which rendered by sonic-cfggen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants