bird template fix
Resolve and Upload Routes / resolve-and-upload (push) Successful in 49s

This commit is contained in:
Pavel Shamshin
2026-08-31 15:47:21 +03:00
parent ec3d1c836e
commit 7d7c3df38d
+1 -1
View File
@@ -58,7 +58,7 @@ def process_file(filepath: Path, community: str, name: str):
# Шаблон для итоговой записи (f-string, поэтому {{ превращается в {)
# target_format = f"route {{cidr}} blackhole {{ bgp_community.add((64888, {community})); }};"
target_format = "route {cidr} blackhole {{ bgp_community.add((64888, {community})); }};"
target_format = "route {cidr} via 10.16.1.8 {{ bgp_community.add((64888, {community})); }};"
with open(filepath, 'r', encoding='utf-8') as f:
for raw_line in f: