fix(nft): гарантированное создание сетов приоритета перед добавлением подсетей (v1.2.28)

This commit is contained in:
Dushnilin
2026-07-26 09:44:00 +03:00
parent e4e645a914
commit 1a8ad3b2de
+6
View File
@@ -1705,6 +1705,9 @@ function nft_add_subnet_file_for_section(section, filepath, table, common_set, i
if (!section_needs_priority_sets(section))
return true;
if (!nft_create_priority_sets(table, sets))
return false;
if (ports != "")
return nft_add_file_chunks_to_family_sets(filepath, table, sets.ip_ports, sets.ip6_ports, "ip-port-from-ip", ports, chunk_size_text);
@@ -1744,6 +1747,9 @@ function nft_add_json_ruleset_subnets_for_section(section, json_path, label, tab
if (!section_needs_priority_sets(section))
return true;
if (!nft_create_priority_sets(table, sets))
return false;
routing_rulesets.extract_ip_cidr_nft_elements(
json_path,
unscoped_path,