Skip to content

Conversation

@bharnden
Copy link
Contributor

@bharnden bharnden commented Aug 1, 2023

No description provided.

gsomlo and others added 30 commits April 6, 2022 13:41
Add the Fedora default location for FRR binaries (/usr/libexec/frr/*.)
to CORE's frrboot default "sbin" search path

Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
… easier visbility, rather than being hidden within the gui docs
…s for empty values, since they may override values set in /etc/core/core.conf
… an interface, whichw ill later cause an error when configuring the rj45 node
…ich is used in multiple places, providing a cleaner and easier to read experience
…ed new modules to all use non deprecated type hinting
… also updated string formatting to f strings
bharnden and others added 28 commits June 5, 2023 13:27
…d redundant default encoding value for calls to decode/encode
…ode id, this will allow retrieving data with the context of the associated node
… the launched process for all nsenter commands
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
Fix templating error in radvd.conf
@bharnden bharnden self-assigned this Aug 1, 2023
@bharnden bharnden merged commit c37fa33 into master Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants