diff options
author | Christian Breunig <christian@breunig.cc> | 2025-05-04 11:23:54 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2025-05-04 11:23:54 +0200 |
commit | aff2835d7b6226e4b89f51e3f6133da26f3a07bf (patch) | |
tree | ee2185f629ccf46f127d3cf37d65422cc8696cff /smoketest/scripts/cli/test_protocols_static_multicast.py | |
parent | d85256bae1757c5c6ecbb685ce4311b0cc89962a (diff) | |
download | vyos-1x-aff2835d7b6226e4b89f51e3f6133da26f3a07bf.tar.gz vyos-1x-aff2835d7b6226e4b89f51e3f6133da26f3a07bf.zip |
vyos.template: T7122: add Jinja2 clever function helper to read vyos.defaults
Add a new category if Jinja2 operands. We already have filters and tests, but
sometimes we would like to call a Python function without and data "|" piped
to it - that's what they call a clever-function.
{{ get_default_port(NAME) }} can be used to retrieve the value from
vyos.defaults.internal_ports[NAME] within Jinja2. We no longer need to extend
the dictionary with arbitrary data retrieved from vyos.defaults, we can now
simply register another clever-function to the Jinja2 backend.
Diffstat (limited to 'smoketest/scripts/cli/test_protocols_static_multicast.py')
0 files changed, 0 insertions, 0 deletions