]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
Remember last valid SLURM in case of syntax error with newer SLURM(s).
authorpcarana <pc.moreno2099@gmail.com>
Fri, 11 Oct 2019 22:30:12 +0000 (17:30 -0500)
committerpcarana <pc.moreno2099@gmail.com>
Thu, 31 Oct 2019 19:17:06 +0000 (13:17 -0600)
commitee5123439b34f91144017706aad308c3b33d511c
tree7f9f69be9348459416dae24e5367d0941b66383f
parent8005195c2183c616f4e6b7c93a123fb187e23ca1
Remember last valid SLURM in case of syntax error with newer SLURM(s).

-Remove 'comment' member from slurm structs, there's no need to store its value.
-Rename 'slurm/slurm_db.*' to 'slurm/db_slurm.*'.
-Allocate SLURM data, so that the last valid SLURM can be used if needed; so, now the SLURM lives on the heap and is 'remembered' as part of the VRPs state. Also remember the date and time when the last valid SLURM was loaded.
-Move 'slurm_bgpsec' and 'slurm_prefix' structs, and SLURM data flags to 'db_slurm.h'.
-Update 'slurm_parser' to return a specific error in case of a syntax error, so that further actions can be taken (ignore slurm, use last valid version, or store as the last valid version).
-In case a previous valid version of SLURM is utilized, log a WARNING indicating that such action is being taken, and log SLURM content at INFO level.
-Fix bug at common function 'process_file', there was an issue before releasing temporal pointers.
12 files changed:
src/Makefile.am
src/common.c
src/rtr/db/vrps.c
src/slurm/db_slurm.c [moved from src/slurm/slurm_db.c with 59% similarity]
src/slurm/db_slurm.h [new file with mode: 0644]
src/slurm/slurm_db.h [deleted file]
src/slurm/slurm_loader.c
src/slurm/slurm_loader.h
src/slurm/slurm_parser.c
src/slurm/slurm_parser.h
test/rtr/db/vrps_test.c
test/rtr/pdu_handler_test.c