core-extra/daemon/core
schrc3b6 722fbde7d0 Fix templating error in radvd.conf
When configuring radvd service an undefined object error is thrown.
The data function in RadvdService returns a dict with ifaces. The radvd
template however, expects a dict with a values key.

I changed the key in the template because "ifaces" is way more descriptive
than "values".

Original Error that is fixed:
Traceback (most recent call last):
  File "/opt/core/venv/lib/python3.9/site-packages/core/configservice/base.py", line 471, in render_template
    return self._render(template, data)
  File "/opt/core/venv/lib/python3.9/site-packages/core/configservice/base.py", line 439, in _render
    return template.render_unicode(
  File "/opt/core/venv/lib/python3.9/site-packages/mako/template.py", line 444, in render_unicode
    return runtime._render(
  File "/opt/core/venv/lib/python3.9/site-packages/mako/runtime.py", line 874, in _render
    _render_context(
  File "/opt/core/venv/lib/python3.9/site-packages/mako/runtime.py", line 916, in _render_context
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
  File "/opt/core/venv/lib/python3.9/site-packages/mako/runtime.py", line 943, in _exec_template
    callable_(context, *args, **kwargs)
  File "/opt/core/venv/lib/python3.9/site-packages/core/configservices/utilservices/templates/etc/radvd/radvd.conf", line 2, in render_body
    % for ifname, prefixes in values:
TypeError: 'Undefined' object is not iterable
2023-07-28 16:03:49 +02:00
..
api daemon: added initial podman node support 2023-06-13 17:00:53 -07:00
configservice daemon/gui: coverted remaining usages of old string formatting to f strings 2023-04-13 16:43:09 -07:00
configservices Fix templating error in radvd.conf 2023-07-28 16:03:49 +02:00
emane daemon: updated core.emane to avoid using deprecated type hinting 2023-04-13 12:18:24 -07:00
emulator daemon: added initial podman node support 2023-06-13 17:00:53 -07:00
gui updated and fixed formatting with proper version of python black 2023-06-13 21:49:50 -07:00
location daemon: updated core.location and core.plugins to avoid using deprecated type hinting 2023-04-13 12:29:16 -07:00
nodes daemon: added initial podman node support 2023-06-13 17:00:53 -07:00
plugins daemon: updated core.location and core.plugins to avoid using deprecated type hinting 2023-04-13 12:29:16 -07:00
scripts cleanup: fixed issue cleaning up device names with @ in them 2023-06-08 11:36:09 -07:00
services daemon: updated formatting for frr changes 2023-04-13 21:25:49 -07:00
xml daemon: added initial podman node support 2023-06-13 17:00:53 -07:00
.gitignore Add some gitignore files. 2015-01-28 02:15:45 +00:00
__init__.py updated default logging to be at warning level and removed need to adjust the paramiko logger 2021-04-21 21:14:32 -07:00
config.py daemon: updated top level core modules from using deprecated type hinting 2023-04-13 15:48:02 -07:00
constants.py.in daemon: refactoring to remove usage of os.path where possible and pathlib.Path instead 2021-03-19 16:54:24 -07:00
errors.py daemon: small improvements to command error reporting, as well as catching and reporting config service get text dynamic exceptions 2022-03-04 09:55:40 -08:00
executables.py daemon: updated top level core modules from using deprecated type hinting 2023-04-13 15:48:02 -07:00
player.py daemon: updated top level core modules from using deprecated type hinting 2023-04-13 15:48:02 -07:00
utils.py daemon: updated utils.cmd to use returncode instead of wait(), removed redundant default encoding value for calls to decode/encode 2023-06-08 14:34:24 -07:00