Repository navigation
Backbone raw - #12
Open
maurerle wants to merge 4 commits into
Open
Backbone raw#12maurerle wants to merge 4 commits into
maurerle wants to merge 4 commits into
Conversation
Das Schema hatte sich als Jinja-Nachbau von BIRD entpuppt: Channel- Updates, Function-Argumente und Import-Filter musste eine nach einer eigene Template-Zeile kosten, und Fehler in der Schema-Logik sind schwerer zu finden als Fehler im BIRD-Text, den bird -p ohnehin prueft. files/bird/ liegt woertliches BIRD, geschichtet nach Aenderungsgrund: common/ + Profil (backbone/ oder bgp-client/) + hosts/<servername>/; die master bird.conf ist eine include-Zeile auf /etc/bird/ffac/*.conf. Was in git steht, ist was bird parst. Die FFRL-Sessions erzwingen ihren local-pref im Import (101/100 DUS, 90 FRA, 80 BER): BIRD 2 kennt kein per-bgp 'preference', und FFRL schickt IPv4 ueberall lp=100, liess die Wahl also dem Zufall. Reihenfolge gemessen 2026-11-12: DUS 1,9 ms/3 Hops (Megaport), FRA 4,7 ms/3 Hops (DE-CIX), BER 12,1 ms/5 Hops (DE-CIX plus Transit). Die hostlokale Kreuzprioritaet bleibt: bb-a bevorzugt DUS-Router a, bb-b Router b. Der bgp-test uebernimt dabei den korrigierten oeffentlichen Prefix 185.66.193.40/29 (alter Zahlendreher 185.193.64.40). bird1-Pakete werden vor bird2 entfernt (bird2 uebernimmt bird.service, birdc und /etc/bird/bird.conf). Die logrotate-Settings von main ueberleben die Rollen-Umschreibung. Das Supernode-Profil folgt im naechsten Commit; bis dahin meldet die Rolle dafuer eine klare Fehlermeldung statt Template-Fehler.
bb-a/bb-rlx und bgp-test beschreiben ihre Interfaces jetzt in networkd_interfaces mit tunnels-Liste und additional_config; die GRE-Tunnel haengen an der Rolle ff.gretunnel (Variable gre_tunnel, loop_var tunnel statt item) und laufen in den six Sessions zu FFRL (a/b je Exit). Sechs Tunnel pro Backbone-Router, MTU 1400. Dabei main-seitige Entwicklung erhalten: ff.gretunnel behaelt die FQCN-Modulnamen, das networkd-Template die interface.vxlan-Bedingung statt der Gruppenabfrage.
Das bird:-Schema in den sn01-03 host_varsloeste die Rolle in ihre zwei wirksamen Export-Klauseln auf: OSPF trug je Familie zwei export- Filter, von denen bird nur den letzten ehrt — die reject_internal- Filter waren toter Code und fallen weg. Uebernommen: kernel table 42 mit krt_prefsrc der FFRL-/32, OSPF v2/v3 ueber ens19 mit accept_public-Export, je Host router id und der eigene Mesh-/56 in der kernel-v6-Zurueckweisung. Der Zahlendreher 185.193.64.40/29 im accept_public_prefix_v4 stirbt mit — korrekt 185.66.193.40/29, damit exportiert OSPF die FFRL-/32 der Supernode tatsaechlich.
Concateniert je Host die Ebenen in glob-Sortierordnung und laesst bird -p darueber (BIRD_BIN oder PATH, sonst Skip). Host- und Profil-Zuordnung kommen aus Inventar-Gruppenbaeumen (backbone, supernodes) und den group_vars, nicht aus einer Rateliste; dazu eindeutige Basisnamen ueber alle Layer, deckungsgleiche hosts/-Verzeichnisse, keine Jinja-Reste, je Host ein router id. Laeuft mit: BIRD_BIN=... pytest tests/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is an alternative to #3 which does some jinja templating of the bird templates.
Instead, we directly add the bird config to ansible in this branch.
This config is compared to the running bird and bird6 config of the bb-a/bb-b and makes reusing similalrly easy