feat(net/frr): run register_sas on restart and reload#5367
feat(net/frr): run register_sas on restart and reload#5367olanystrom wants to merge 1 commit intoopnsense:masterfrom
Conversation
invoke register_sas during FRR restart and reload to keep SAS state in sync with FRR changes
|
setup.sh also loads on restart and reload. Is the ordering wrong? |
|
It never seems to run on my server. I added logging to the script, but |
|
I’ll check next week. This seems suspicious. Cheers, |
|
@fichtner it is, looks like a regression. My best guess is 9486488 @olanystrom can you try 9486488 and see if that makes a difference on your end? |
|
Yep, looks reasonable. |
|
@AdSchellevis I Disabled and Enabled FRR with that change in. |
If I'm not mistaken the setup hook only triggers on [re]start, which might explain the behavior. Assuming reloading does work for these changes, we might need to add the script only in the reload command. I'll leave this open for further discussion. |
|
If a neighbor is changed, check if vtysh show running-config even has the new password in it (if it is contained in there, I didnt check) From my experience changes that destroy configration aspects are not processed by frr-reload in order to not destroy established sessions. I assume a full restart is necessary anyway. |
invoke register_sas during FRR restart and reload to keep SAS state in sync with FRR changes
Important notices
Before you submit a pull request, we ask you kindly to acknowledge the following:
If AI was used, please disclose:
Related issue
If this pull request relates to an issue, link it here:
#3372
Describe the problem
A clear and concise description of the problem this pull request addresses.
BGP md5-password are not synced to userspace with setkey.
A utility to sync this exists as '/usr/local/opnsense/scripts/frr/register_sas' but that is only ran once in setup.sh
Describe the proposed solution
Adding '/usr/local/opnsense/scripts/frr/register_sas' to reload and restart commands in actions_quagga.conf