-
Notifications
You must be signed in to change notification settings - Fork 16
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
Uninett/jinja2 filters #167
Uninett/jinja2 filters #167
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #167 +/- ##
===========================================
+ Coverage 58.33% 58.37% +0.04%
===========================================
Files 59 60 +1
Lines 5942 5980 +38
===========================================
+ Hits 3466 3491 +25
- Misses 2476 2489 +13
Continue to review full report at Codecov.
|
58bbb24
to
aefe3b7
Compare
c4fcf45
to
c582e0f
Compare
Almost ready for merge now. Still to do
|
|
58989d7
to
5c6dced
Compare
- Import filters into the jinja environment via nornir_helper - Add jinja filter to increment an IP address/interface - Add unit tests for IP incrementation, covering IPv4 and IPv6
- it messes with the jinja filter unit tests - "probably not needed any longer"
Co-authored-by: Svein Ove Undal <sveinov@uninett.no>
5c6dced
to
e2aa35d
Compare
Branch is ready for merge now from our side. |
Unfinished draft/WIP PR for review purposes.
ToDo:
Jinja2 filter functions
Unit tests for functions
invoke filter functions
Any part that touches jinja2 templates should be made aware of the filter functions, e.g.
insync_devices.py
nornir_helper.py
template_dry_run.py