From 2b9a71e8ecb41cc8e9b73735837f07c9b1351ff7 Mon Sep 17 00:00:00 2001 From: uvok cheetah Date: Sun, 21 Apr 2024 15:50:35 +0200 Subject: Changed to bird tole - rename prefixes to clear_prefixes - add router id - add config files - add handler "change" --- roles/uvok_bird/files/common.conf | 14 ++++++++++++++ roles/uvok_bird/files/logging.conf | 11 +++++++++++ 2 files changed, 25 insertions(+) create mode 100644 roles/uvok_bird/files/common.conf create mode 100644 roles/uvok_bird/files/logging.conf (limited to 'roles/uvok_bird/files') diff --git a/roles/uvok_bird/files/common.conf b/roles/uvok_bird/files/common.conf new file mode 100644 index 0000000..61917bd --- /dev/null +++ b/roles/uvok_bird/files/common.conf @@ -0,0 +1,14 @@ +# managed by Ansible + +function honor_graceful_shutdown() { + if (65535, 0) ~ bgp_community then { + bgp_local_pref = 0; + } +} + +# The Device protocol is not a real routing protocol. It does not generate any +# routes and it only serves as a module for getting information about network +# interfaces from the kernel. It is necessary in almost any configuration. +protocol device { + scan time 10; +} diff --git a/roles/uvok_bird/files/logging.conf b/roles/uvok_bird/files/logging.conf new file mode 100644 index 0000000..bd9e6e8 --- /dev/null +++ b/roles/uvok_bird/files/logging.conf @@ -0,0 +1,11 @@ +# managed by Ansible + +# log syslog { info, remote, warning, error, auth, fatal, bug }; +log syslog { warning, error, fatal, bug }; +log "/var/log/bird/remote.log" { remote }; +log "/var/log/bird/bugs.log" { bug }; +log "/var/log/bird/trace.log" { trace }; +log "/var/log/bird/debug.log" { debug }; +log "/var/log/bird/info.log" { info }; + +timeformat protocol iso long; -- cgit v1.2.3