]> git.ipfire.org Git - location/libloc.git/commit
export: Make ipset files easily reloadable
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 11 Feb 2022 17:14:02 +0000 (17:14 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 11 Feb 2022 17:14:58 +0000 (17:14 +0000)
commit1b759b42aad7493e32a058d4f7645dff966b8633
tree1b3697748377c1dee1eadbf7f5ecf45c93f2d78d
parent38d0faeabb9f7cea8394521a45f9ed204a4e16fb
export: Make ipset files easily reloadable

This change allows to "restore" a file multiple times without problems.

If the set already exists, the create command will skip it and we will
flush any existing content to load the new one.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/python/export.py