summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/test_load-balancing_haproxy.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2025-05-04 11:23:54 +0200
committerChristian Breunig <christian@breunig.cc>2025-05-04 11:23:54 +0200
commitaff2835d7b6226e4b89f51e3f6133da26f3a07bf (patch)
treeee2185f629ccf46f127d3cf37d65422cc8696cff /smoketest/scripts/cli/test_load-balancing_haproxy.py
parentd85256bae1757c5c6ecbb685ce4311b0cc89962a (diff)
downloadvyos-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_load-balancing_haproxy.py')
0 files changed, 0 insertions, 0 deletions