This commit is contained in:
+1
-1
@@ -85,7 +85,7 @@ def process_file(filepath: Path, community: str, name: str):
|
||||
|
||||
elif entry_type == 'as':
|
||||
# f-string, {{ превращается в {
|
||||
bgpq4_format = f"route %n/%l via blackhole {{ bgp_community.add((64888, {community})); }};\n"
|
||||
bgpq4_format = f"route %n/%l via 10.16.1.8 {{ bgp_community.add((64888, {community})); }};\n"
|
||||
try:
|
||||
result = subprocess.run(
|
||||
['bgpq4', '-A', '-F', bgpq4_format, value],
|
||||
|
||||
Reference in New Issue
Block a user