ionutboangiu
add2ee1971
cfg: add stats/thresholds_conns to dns_agent
2025-06-24 18:18:12 +02:00
ionutboangiu
b0fc13896d
cfg: add stats/thresholds_conns to http_agent
2025-06-24 18:18:12 +02:00
ionutboangiu
f95273db30
cfg: add stats/thresholds_conns to radius_agent
2025-06-24 18:18:12 +02:00
ionutboangiu
d71327a00e
cfg: revise conn helper funcs
2025-06-24 18:18:12 +02:00
ionutboangiu
7264957fee
cfg: add stats/thresholds_conns to diameter_agent
2025-06-24 18:18:12 +02:00
gezimbll
3c11cddb0d
added api definitions in the apis package
2025-06-24 18:17:10 +02:00
armirveliaj
4edf0e7f83
Add coverage tests on IPS
2025-06-24 18:02:24 +02:00
armirveliaj
3a70726143
Add coverage tests on IPS
2025-06-24 18:02:24 +02:00
armirveliaj
e83cc99128
Add coverage tests on IPS
2025-06-24 18:02:24 +02:00
armirveliaj
3475ba9993
Add coverage tests on IPS
2025-06-24 18:02:24 +02:00
armirveliaj
88935dc0f5
Add coverage tests on IPS
2025-06-24 18:02:24 +02:00
armirveliaj
5da936129c
Add coverage tests on CDRs
2025-06-24 18:02:24 +02:00
gezimbll
d8757d017d
using an temp variable for lkID in unlock method
2025-06-24 17:58:32 +02:00
ionutboangiu
725c56592c
fix compilation errors related to ip opts changes
2025-06-11 10:59:22 +02:00
ionutboangiu
d8904451f3
readme: update link to API reference
2025-06-05 14:23:38 +02:00
DanB
86347c2741
Updating IPs dynamic options
v1.0.0-dev
2025-06-03 17:52:01 +02:00
ionutboangiu
0d11ac9d8a
Replace Units with Address in IPUsage
...
Units are not needed anymore, as only one address can be allocated
at once.
2025-06-03 16:27:01 +02:00
ionutboangiu
d22727782e
change IP API methods from plural to singular
2025-06-03 16:07:28 +02:00
ionutboangiu
33735613e7
Rename Pool type to IPPool for clarity
2025-06-03 14:23:29 +02:00
ionutboangiu
df10601b18
include ips cases in index admins apis
2025-06-03 14:23:29 +02:00
ionutboangiu
eb9f826ffd
Rename IP to IPAllocations
2025-06-03 14:23:29 +02:00
armirveliaj
fb92e613d8
Add coverage tests on engine
2025-06-03 13:12:13 +02:00
ionutboangiu
3d76af47bc
Revise IPProfile definition + tests
2025-06-03 13:10:15 +02:00
ionutboangiu
27456ce5cf
add sample IPs API calls
2025-06-01 14:04:28 +02:00
ionutboangiu
805ae5d916
integrate ips with sessions (incomplete)
2025-06-01 14:04:28 +02:00
ionutboangiu
a66c472a36
sessions: rename jsoncfg obj fields to camel case
2025-06-01 14:04:28 +02:00
ionutboangiu
8645dc5c5e
sessions: simplify dynopts obj cloning
2025-06-01 14:04:28 +02:00
ionutboangiu
0fb46c9160
sessions: handle errors in cfg load func
2025-06-01 14:04:28 +02:00
ionutboangiu
132a23144a
add ips flags to sessions cfg
2025-06-01 14:04:28 +02:00
ionutboangiu
c031366a98
remove constants of non-existent APIs
...
for resources and ips only
2025-06-01 14:04:28 +02:00
ionutboangiu
4ef2182b67
register IPs service using the correct function
2025-06-01 14:04:28 +02:00
ionutboangiu
9ee93ed879
ips: prepend options instead of append
...
to ensure default options are at the end. Otherwise, they would
always match first.
2025-06-01 14:04:28 +02:00
ionutboangiu
9812e6f605
return if Service Start/Shutdown errors
...
Previously, a couple cases could just close the shutdown channel but
in logs it would appear as if they have been started.
2025-05-30 14:54:09 +02:00
ionutboangiu
4afe92695c
register IPService object under the correct name
2025-05-30 14:54:09 +02:00
ionutboangiu
130d516a16
Revise service toggle test
...
- ensure analyzers folder is cleaned up (could cause deadlocks)
- ensure timeout is not reset for every ping (never times out because pinging
duration is much shorter than timeout)
2025-05-30 14:54:09 +02:00
ionutboangiu
38fa360df9
cgr-engine: add flag to print cfg in JSON format
2025-05-30 14:54:09 +02:00
ionutboangiu
eed6b8a51a
add implementation for new ips module
2025-05-29 15:46:42 +02:00
ionutboangiu
1b4324157d
return nil when cloning nil dynopts objects
2025-05-29 15:46:42 +02:00
ionutboangiu
180eb6cbfd
extract resources apis to different file
2025-05-29 15:46:42 +02:00
ionutboangiu
2f7da3702a
remove redundant dm init in test flush helper
2025-05-27 17:31:01 +02:00
ionutboangiu
d619246c84
close db connections in test flush helpers
...
Previously, database connections would stay alive until "go test"
would finish, sometimes leading to max conn errors.
2025-05-27 17:31:01 +02:00
ionutboangiu
d02bfac20b
Fix rsyslog config to capture logs across distros
...
Add three conditions to properly capture CGRateS logs:
- programname startswith 'cgr-engine': catches logs from external
libraries that don't use our syslogger (e.g. diameter conn errors)
- programname startswith 'CGRateS': handles deb-based distros
where our syslog tag becomes the program name
- msg contains 'CGRateS': handles rpm-based distros where systemd
journal overrides programname but our tag remains in message content
2025-05-27 17:30:30 +02:00
ionutboangiu
6557c13b61
remove unused chargers conn in test
...
to prevent errors due to chargers not being enabled
2025-05-26 08:22:23 +02:00
ionutboangiu
8d8af20ee1
ensure MaxAbstracts reply is the right type
...
to prevent panic while using *internal conn
2025-05-26 08:22:23 +02:00
ionutboangiu
4af1cc106c
cdrs: add internal channel to connmanager
...
now checking for the right constant (CDRServer)
2025-05-26 08:22:23 +02:00
ionutboangiu
c3bf93f1b6
Fix context lifecycle in scheduled actions
...
Remove ctx field from scheduledActs struct and create a fresh context
when actions execute via cron. This prevents "context canceled" errors
that occurred when stored contexts from API calls were used for delayed
execution. The context is now properly received from the caller in case
of "*asap" actions.
2025-05-26 08:19:43 +02:00
arberkatellari
7fe60c2b8b
fix failing tests
2025-05-18 16:21:37 +02:00
ionutboangiu
a4e45cd7db
ci: fix var name to disable repo cloning
2025-05-14 12:11:06 +02:00
arberkatellari
5847ceab00
Add and revise tests for offline internal DB
2025-05-13 17:07:17 +02:00
arberkatellari
5b66678313
Add offline internal DB functionality for dataDB,storDB & configDB
2025-05-13 17:07:17 +02:00