Hello, I am trying to change my bird config file and then reload it, but when I try to do *reload all* or *reload in all * reload will fail at static1 and static2, but* reload out all* will be successful. I am not sure what I am missing, your help is much appreciated. I have the below configs: protocol kernel { ipv4 { table v116; export all; }; kernel table 116; } protocol kernel { ipv4 { table v1120; export all; }; kernel table 1120; } protocol bfd { interface "eth1" { min rx interval 20 ms; min tx interval 50 ms; idle tx interval 300 ms; }; } protocol static { ipv4 { table v116; }; route 0.0.0.0/0 via 10.17.3.236 bfd; } protocol static { ipv4 { table v1120; }; route 0.0.0.0/0 via 10.17.3.232 bfd; } Regards, Farhad
On 12.08.20 07:43, Farhad wrote:
Hello,
I am trying to change my bird config file and then reload it, but when I try to do *reload all* or *reload in all * reload will fail at static1 and static2, but* reload out all* will be successful. I am not sure what I am missing, your help is much appreciated.
Hi Farhad, If I understand your intention, you want to use `birdc configure` to update/reload your running bird conf, i.e. if your routes or route-options in "protocol static" have been changed. Using `configure`, the state of other protocols like ospf, bgp, rip, etc will not change, so I would consider it "safe" to use. (I use it anytime to apply changes on filters or attributes, etc and never observed an issue.) `birdc configure` will not apply a faulty/broken config. You can also test it with upfront with `birdc -c <conf> -p`. This will only parse the config and all its includes etc and will exit with non-zero if there are any syntax errors. If I understand `reload`, reload will shutdown/close i.e. a ospf or bgp session, remove all routes, and re-init the session. Best, Bernd
Hi Bernd, Thank you very much, Regards, Farhad On Thu, Aug 13, 2020 at 11:12 AM Bernd Naumann <bena@spreadshirt.net> wrote:
On 12.08.20 07:43, Farhad wrote:
Hello,
I am trying to change my bird config file and then reload it, but when I try to do *reload all* or *reload in all * reload will fail at static1 and static2, but* reload out all* will be successful. I am not sure what I am missing, your help is much appreciated.
Hi Farhad,
If I understand your intention, you want to use `birdc configure` to update/reload your running bird conf, i.e. if your routes or route-options in "protocol static" have been changed.
Using `configure`, the state of other protocols like ospf, bgp, rip, etc will not change, so I would consider it "safe" to use. (I use it anytime to apply changes on filters or attributes, etc and never observed an issue.)
`birdc configure` will not apply a faulty/broken config. You can also test it with upfront with `birdc -c <conf> -p`. This will only parse the config and all its includes etc and will exit with non-zero if there are any syntax errors.
If I understand `reload`, reload will shutdown/close i.e. a ospf or bgp session, remove all routes, and re-init the session.
Best, Bernd
participants (2)
-
Bernd Naumann -
Farhad