Skip to content
Snippets Groups Projects
Verified Commit bb6a2c60 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

fwup: Warn about growing sizes of sets

When the set size needs to be updated, warn about it, as the firewall
definitions need to be updated.
parent 8f814e85
No related branches found
No related tags found
No related merge requests found
...@@ -62,3 +62,8 @@ fake_set_generate 'turris_100FA4E0_lb_a_6_X', 6, 'hard'; ...@@ -62,3 +62,8 @@ fake_set_generate 'turris_100FA4E0_lb_a_6_X', 6, 'hard';
$dbh->do("UPDATE config SET value = ? WHERE plugin = 'fwup' AND name = 'version'", undef, $version) if $bump_config_version; $dbh->do("UPDATE config SET value = ? WHERE plugin = 'fwup' AND name = 'version'", undef, $version) if $bump_config_version;
$dbh->commit; $dbh->commit;
# TODO: Solve the problem of propagating the size to the firewall rules somehow
# Currently, if the sizes don't match, ucollect can't create the set. While we can switch
# sets of different sizes, ipset -exist create complains.
die "I had to update the sizes, please propagate them to the firewall rules.\n" if $bump_config_version;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment