[SOLVED] relationship of frr.conf and frr.conf.local

scyto

Active Member
Aug 8, 2023
476
85
28
I am hoping someone can explain how frr.conf.local is used

I gathered from some threads it was to allow local changes to frr config that SDN wouldn't write, however was super confused when the settings i put in the .local conf file AND the SDN managed settings appeared in both frr.conf AND frr.conf.local. This wasnt what i was expecting reading the threads where the .local was first mentioned.

What I had done:
  • got my local FRR working with a frr.conf
  • copied the working frr.conf to frr.conf.local
My expectations:
  • the frr.conf.local file would not be touched
  • the frr.conf would have SDN settings
  • that the in-memory working version of frr config (vtysh -c "show running-config" would show the union of the two files"
My actual experience:
  • that the in-memory config was written to both versions of the conf file
Questions:
  1. What is the high-level merge logic does SDN to merge settings in this file
  2. If i want to make changes to the local settings (e.g. my openfabric or interface settings) where should i make them to ensure SDN doesn't blow them away:
    1. frr.conf or frr.conf.local
    2. both?
    3. or only make them via vtysh and save them (and then will SDN ensure settings are in both files)?
Hoping someone can clarify - i need to understand this so i can add the right instructions to my new mesh network write up
 
Last edited:
The EVPN plugin merges the contents of the frr.conf.local with its own configuration and writes the result to frr.conf, before reloading the FRR daemon. So any additions you want to the FRR config should be made to frr.conf.local - which should then get merged on applying the SDN configuration. Any other changes will get overwritten on reloading the SDN configuration.
 
Thanks, i am confused how the changes from frr.conf by bgp were back propogated into frr.conf.local - but maybe that was me doing a copy and forgetting i did that. I will clean reset both files to how they were and keep an eye on and see if it was just me being stupid