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
12c07e0175
services: fixed pcap service not properly backgrounding command to avoid blocking
2023-07-15 10:27:41 -07:00
Blake Harnden
75a92f3a38
docs: adjustments for tutorial 1 to working order
2023-06-05 13:07:59 -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
3d722a7721
daemon: updating core.configservice and core.configservices to avoid deprecated type hinting
2023-04-13 11:58:58 -07:00
laerling
b4ed8bc9c5
Fix pcap service: Mako dict parameter missing
2023-03-21 00:47:27 +01:00
Blake Harnden
e25d1c72b3
daemon: fixed bad config generation for bgp config service
2022-09-13 12:41:24 -07:00
Blake Harnden
fe0bc2b405
services: removed no longer relevant service arouted and associated logic, fixed nrlsmf to put the flood command before configured interfaces
2022-04-26 14:11:48 -07:00
Blake Harnden
c40fb2b15d
daemon: updated frr services to use consistent configuration for iface config for ospfv2, enabled opaque lsa support for ospf by default
2022-04-11 10:54:27 -07:00
Gabriel Somlo
314eee33f6
frrboot: add fedora sbin path to default
...
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>
2022-04-06 13:41:00 -04:00
Blake Harnden
440c06c040
daemon: updates to refactor and clean up SessionConfig to contain its own logic
2022-04-04 15:13:31 -07:00
Blake Harnden
84acb82c18
daemon/grpc/gui: further updates for a new working wireless node, added grpc support for control and additions to gui for creation
2022-03-30 21:13:28 -07:00
Blake Harnden
3c64654598
services: fix missing configurations for ospfv2 in config services
2022-02-17 10:14:04 -08:00
Blake Harnden
44b7b6a27e
daemon: update config service files to use paths for retrieving templates and generating files in the same consistent way
2022-02-03 14:28:56 -08:00
Blake Harnden
22e92111d0
daemon: updates to provide config types for configurable values, without the need to specify the enumerated type
2021-11-15 16:40:30 -08:00
Blake Harnden
bd896d1336
daemon: added capability to config services to shadow directory structures, from a given path, or from a local source, files may be templates or a straight copy and can be sourced from node named unique paths for node specific files, also refactored and renamed file creation related functions for nodes
2021-09-17 14:34:37 -07:00
Blake Harnden
e2a9f6b1f4
daemon: initial changes to support one emane process per nem
2021-05-18 09:48:38 -07:00
Blake Harnden
ad09bd5504
initial changes to mark older style services as deprecated and make configurable services the defaults for the python gui, added attribute to still allow supporting the legacy gui for time being and logic to compensate
2021-05-07 13:10:05 -07:00
Blake Harnden
4830538053
daemon: fixed issue in dhcp server subnet line using wrong address
2021-04-23 14:00:05 -07:00
Blake Harnden
dcf402ae04
daemon: fixed issue with dhcp service and dealing with addresses with a prefix of 32
2021-04-22 23:02:42 -07:00
Blake Harnden
69652ac577
updates to python based logging to use module named loggers, updated logging config file to align with these changes
2021-04-21 21:09:35 -07:00
Blake Harnden
6086d1229b
daemon: updated config.py to use dataclasses for config classes, updated naming and referencing. updated configurable options to self validate default values align with the config type. updated the example emane model to better align with the current state of things
2021-03-31 11:13:40 -07:00
Blake Harnden
c2a40dbb6b
daemon: removed usages of getattr and hasattr where possible
2021-01-12 21:30:48 -08:00
Blake Harnden
380d411833
daemon: updated linkconfig to calculate a limit when bw/delay are present, updated and simplified logic as well, leveraging code from outstanding pull request, updated code to factor in the mtu of the iface being configured
2020-10-17 08:18:49 -07:00
Blake Harnden
4e79865035
updated radvd config service to match recent change to radvd standard service
2020-10-07 15:28:04 -07:00
Blake Harnden
0d2dd70727
daemon: changes usage of running scripts using /bin/sh to bash to help provide consistency in what could be ran, added bash as a dependency in installation scripts, added bash as an executable check during startup
2020-07-28 16:13:37 -07:00
Blake Harnden
36123e7aa5
updated frr daemons template file for the config service to align with changes to normal service
2020-07-16 14:21:06 -07:00
Blake Harnden
3bfc299bfd
daemon: fixed typo in core.configservices.securityservices
2020-06-25 16:22:56 -07:00
Blake Harnden
1ef66181c6
daemon: moved QUAGGA_STATE_DIR from constants.py to quagga service files
2020-06-22 21:39:29 -07:00
Blake Harnden
2145c07cb7
daemon: moved FRR_STATE_DIR from constants.py to frr service files
2020-06-22 21:36:39 -07:00
Blake Harnden
20feea8f12
daemon: refactored usages of addr to ip and updated functions to align
2020-06-19 10:54:58 -07:00
Blake Harnden
d88f3a2535
daemon: refactored CoreInterface.addrlist storing strings into CoreInterface.ip4s and ip6s, stored as netaddr.IPNetwork objects
2020-06-19 08:50:36 -07:00
Blake Harnden
b2ea8cbbf6
daemon: added type hinting throughout config services
2020-06-18 14:15:45 -07:00
Blake Harnden
0725199d6d
initial sweeping changes to call all usages of various interface related variables and functions (netif, interface, if, ifc, etc) to use a consistent name iface
2020-06-16 09:30:16 -07:00
Blake Harnden
ea4271d7cb
changed defaultroute service to behave similarly as before and use the first interface for a default .1 address
2020-05-01 19:15:53 -07:00
Blake Harnden
7d392c43ac
improve default route service to detect connected routers and use the addresses of the first one found
2020-04-02 15:12:07 -07:00
Blake Harnden
44bf4e020c
updated config services frr to match standard frr service
2020-02-20 09:46:25 -08:00
Blake Harnden
461a27989c
initial config changes for config services for openvpn
2020-02-04 17:28:58 -08:00
Blake Harnden
3b0a8ebc37
small tweak to make openvpn example server config valid
2020-02-04 17:09:54 -08:00
Blake Harnden
6f2a840710
update simple service to show all config types
2020-01-24 10:59:47 -08:00
Blake Harnden
531b55e1e7
small update to quagga config services, converted frr services to config services
2020-01-23 22:06:30 -08:00
Blake Harnden
b9cbbf5709
finished converting quagga services to config services
2020-01-23 21:08:40 -08:00
Blake Harnden
fcc445bb72
fixed issues in zebra config service, updated config services to start and validate different modes appropriately, added service dependency startup for config services
2020-01-23 13:22:47 -08:00
Blake Harnden
0749dcacb2
updated config services to use getattr instead of hasattr to simplify code
2020-01-23 11:27:05 -08:00
Blake Harnden
852eb60ab9
renamed config service get_text to get_text_template to be more obvious to the purpose
2020-01-23 11:06:09 -08:00
Blake Harnden
422bf9ac15
initial work to add support for quagga services as config services
2020-01-23 11:03:56 -08:00
Blake Harnden
8f03c9c975
finished converting nrl services to config service format
2020-01-23 08:53:20 -08:00
Blake Harnden
062273a99b
added several nrl services updated to config service format
2020-01-22 22:10:30 -08:00