Add BGP_LOG_LEVEL environment variable support to ExaBGP configuration. Update Docker_RUN.md to document new log level option and modify start.sh to utilize the log level during ExaBGP startup.
Build and Push Docker Image / build (push) Successful in 3m16s
Build and Push Docker Image / build (push) Successful in 3m16s
This commit is contained in:
@@ -21,6 +21,7 @@ def generate_exabgp_config():
|
||||
hold_time = get_env_var('BGP_HOLD_TIME', '90')
|
||||
keepalive = get_env_var('BGP_KEEPALIVE', '30')
|
||||
md5_password = get_env_var('BGP_MD5_PASSWORD', '')
|
||||
log_level = get_env_var('BGP_LOG_LEVEL', 'INFO')
|
||||
|
||||
# Генерация конфигурации
|
||||
config = f"""# Автоматически сгенерированная конфигурация ExaBGP
|
||||
@@ -64,12 +65,6 @@ neighbor {neighbor_ip} {{
|
||||
}}
|
||||
}}
|
||||
}}
|
||||
|
||||
# Глобальные настройки логирования
|
||||
log {{
|
||||
destination /app/logs/exabgp.log;
|
||||
level INFO;
|
||||
}}
|
||||
"""
|
||||
|
||||
return config
|
||||
|
||||
Reference in New Issue
Block a user