This commit is contained in:
+1
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user