Commit graph

2155 commits

Author SHA1 Message Date
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
Blake Harnden
648f5425b5 install: update pyyaml to 6.0.1 2023-07-25 10:53:08 -07:00
Blake Harnden
359f6940e1 install: fixed issue with dual pyyaml reqs 2023-07-25 10:40:30 -07:00
Blake Harnden
2547c61a7c install: update pyyaml to 5.4.1 2023-07-25 10:35:47 -07:00
Blake Harnden
12c07e0175 services: fixed pcap service not properly backgrounding command to avoid blocking 2023-07-15 10:27:41 -07:00
Blake Harnden
d63aa03343 build: updated grpcio dependency versions to fix grpcio vulnerabilities 2023-07-07 08:57:45 -07:00
Blake Harnden
db89fbf066 updated and fixed formatting with proper version of python black 2023-06-13 21:49:50 -07:00
Blake Harnden
a80796ac72 daemon: added initial podman node support 2023-06-13 17:00:53 -07:00
Blake Harnden
c76bc2ee8a daemon: updates for docker nodes to read and use the environ file for the launched process for all nsenter commands 2023-06-12 16:30:02 -07:00
Blake Harnden
e60b0f0de1 daemon: fixed issue bringing back addresses with no broadcast on rj45 nodes 2023-06-12 10:00:38 -07:00
Blake Harnden
e0e4b05b7f gui/grpc: updated GetConfigServiceDefaults to require a session and node id, this will allow retrieving data with the context of the associated node 2023-06-08 20:40:49 -07:00
Blake Harnden
12d7a1ff2a gui: fixed issue allowing duplicate named hook scripts 2023-06-08 14:59:40 -07:00
Blake Harnden
81230edac3 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
Blake Harnden
94f070e0ff cleanup: fixed issue cleaning up device names with @ in them 2023-06-08 11:36:09 -07:00
Blake Harnden
75a92f3a38 docs: adjustments for tutorial 1 to working order 2023-06-05 13:07:59 -07:00
Blake Harnden
fac8cfae08 daemon: fixed issue with session data collect transition not properly stopping config services 2023-04-15 00:25:41 -07:00
Blake Harnden
4a02d4bed9 gui: improve type hinting for ShowVar.state() 2023-04-13 21:48:39 -07:00
Blake Harnden
18ac8d5620 daemon: updated formatting for frr changes 2023-04-13 21:25:49 -07:00
Blake Harnden
49049befc8 Merge branch 'gls-frr-sbin-fedora' of https://github.com/gsomlo/core into gsomlo-gls-frr-sbin-fedora 2023-04-13 21:20:35 -07:00
bharnden
32bcd0a345
Merge pull request #774 from laerling/develop
Fix pcap service: Missing parameter
2023-04-13 21:09:34 -07:00
Blake Harnden
899800b925 daemon/gui: coverted remaining usages of old string formatting to f strings 2023-04-13 16:43:09 -07:00
Blake Harnden
4dba1bbe32 gui: updated usage of .format to f strings and small code cleanup for colorpicker 2023-04-13 16:30:35 -07:00
Blake Harnden
e7351b594d gui: updated core.gui to not use deprecated type hinting 2023-04-13 15:53:16 -07:00
Blake Harnden
69f05a6712 daemon: updated top level core modules from using deprecated type hinting 2023-04-13 15:48:02 -07:00
Blake Harnden
921bfdf527 daemon: updated core.services to avoid using deprecated type hinting, also updated string formatting to f strings 2023-04-13 15:39:40 -07:00
Blake Harnden
7f58224f43 daemon: updated core.nodes to avoid using deprecated type hinting 2023-04-13 13:32:23 -07:00
Blake Harnden
f9505b3173 daemon: updated core.scripts and core.xml to avoid using deprecated type hinting 2023-04-13 13:27:22 -07:00
Blake Harnden
7ea950f8ec daemon: updated core.location and core.plugins to avoid using deprecated type hinting 2023-04-13 12:29:16 -07:00
Blake Harnden
8abf2561bf daemon: updated core.emulator to avoid using deprecated type hinting 2023-04-13 12:23:44 -07:00
Blake Harnden
4c222d1a7a daemon: updated core.emane to avoid using deprecated type hinting 2023-04-13 12:18:24 -07:00
Blake Harnden
3d722a7721 daemon: updating core.configservice and core.configservices to avoid deprecated type hinting 2023-04-13 11:58:58 -07:00
Blake Harnden
e770bcd47c daemon: update deprecated typing for core.api 2023-04-13 11:22:37 -07:00
Blake Harnden
6ff2abf0b8 daemon: fixed issue for CoreError messages in new hooks module, updated new modules to all use non deprecated type hinting 2023-04-12 16:53:08 -07:00
Blake Harnden
da3cebe1cd daemon: added refactored cleaned up logic for future handling of broadcasting data 2023-04-12 16:14:58 -07:00
Blake Harnden
b6b300207b daemon: added convenience method to check if a session is running, which is used in multiple places, providing a cleaner and easier to read experience 2023-04-12 14:44:51 -07:00
Blake Harnden
cdc8c7360d daemon: added refactored cleaned up code to use for hooks 2023-04-12 11:58:25 -07:00
Blake Harnden
a6a09d9e56 daemon: added new cleaned up controlnet code, for future use 2023-04-11 12:45:50 -07:00
Blake Harnden
cafbb15b1e daemon: small cleanup in distributed start 2023-04-11 10:09:40 -07:00
Blake Harnden
2eb29525de gui: fix issue deleting nodes/links attached to rj45 nodes 2023-04-10 08:13:01 -07:00
Blake Harnden
03fe74c195 gui: fix issue when joining a session with an rj45 node and assigning an interface, whichw ill later cause an error when configuring the rj45 node 2023-03-28 12:37:25 -07:00
Blake Harnden
d52e0c4547 grpc: adjustment when starting a session to not update session options for empty values, since they may override values set in /etc/core/core.conf 2023-03-21 15:34:13 -07:00
laerling
b4ed8bc9c5 Fix pcap service: Mako dict parameter missing 2023-03-21 00:47:27 +01:00
Blake Harnden
f8d2b47fa9 install: updated Pillow dependency 2023-03-03 10:00:59 -08:00
Blake Harnden
fec400ac2e bumped versions for next release 2023-03-01 21:51:05 -08:00
Blake Harnden
c1ad39631d install: updated poetry.lock file to latest dependencies, also updated invoke to 1.7.3 to avoid python 3.10+ issues 2023-02-27 12:49:39 -08:00
Blake Harnden
3e5c8c894f daemon: fixed issue for LXC nodes and not properly picking up configured image name to use and for writing to xml 2023-02-21 12:06:01 -08:00
Blake Harnden
93272d6ed7 daemon: formatting changes related to updating the python black formatter 2023-02-03 15:53:44 -08:00
Blake Harnden
4c351b0d72 install: updated version of the python black library being used, updated poetry.lock in response to help correct issue with click 2023-02-03 15:46:52 -08:00
Blake Harnden
56a287c9c0 install: updated poetry.lock to correct poetry warning, also updates some transitive dependencies for the better 2023-02-03 15:34:16 -08:00
Blake Harnden
d4997bbc04 daemon: fixed p2p nodes to disable mac learning, with new usage to tie together all wired links, this feature is not desired 2023-02-03 15:05:03 -08:00