That was actually how I noticed it in the first place. I was running a 
highstate and it kept wanting to change my rc.conf.local and put the 
ospf2d_flags line back in. 

I do not run any salt states automatically, that would be an obvious 
workaround. I was just hoping to get some clarification as to my approach, and 
if I wasn’t doing something correctly in regards to working with multiple 
rdomains. 

This is on OpenBSD 6.4 btw...

Thanks!
-Henry


> On Feb 19, 2019, at 9:47 PM, Scott Reese <obs...@marianinc.com> wrote:
> 
> ----- Original Message -----
>> From: "Henry Bonath" <he...@thebonaths.com>
>> To: "misc" <misc@openbsd.org>
>> Sent: Tuesday, February 19, 2019 2:03:31 PM
>> Subject: Multiple instances of OSPFD in different RDomains - rcctl behavior
> 
>> Hello, I am seeing some strange behavior with my /etc/rc.conf.local
>> regarding my configuration for running two instances of OSPFD in
>> different RDomains.
>> 
>> The way I have this configured, is I have a symlink: /etc/rc.d/ospf2d
>> -> /etc/rc.d/ospfd so that the ospfd that runs in rdomain 2 has its
>> own entry in rc.conf.local, pointing to its own config file.
>> 
>> In my /etc/rc.conf.local I have the following:
>> #############################
>> bgpd_flags=
>> ldpd_flags=
>> ospf2d_flags=-f /etc/ospf2d.conf
>> ospf2d_rtable=2
>> ospfd_flags=
>> pf=NO
>> pkg_scripts=salt_minion ospf2d
>> salt_minion_rtable=3
>> #############################
>> 
>> However I notice that something is removing the "ospf2d_flags=..."
>> line as output from daily insecurity mail:
>> 
>> ======
>> /etc/rc.conf.local diffs (-OLD  +NEW)
>> ======
>> --- /var/backups/etc_rc.conf.local.current      Wed Jan 16 01:30:06 2019
>> +++ /etc/rc.conf.local  Fri Feb 15 13:05:17 2019
>> @@ -1,9 +1,7 @@
>> bgpd_flags=
>> ldpd_flags=
>> -ospf2d_flags=-f /etc/ospf2d.conf
>> ospf2d_rtable=2
>> ospfd_flags=
>> pf=NO
>> pkg_scripts=salt_minion ospf2d
>> salt_minion_rtable=3
>> 
>> Is my syntax incorrect? Would /etc/daily be doing something here to my
>> configuration?
>> Why would this line keep being automatically removed?
>> 
>> Thanks in advance!
> 
> Greetings Henry:
> 
> Looks like you're running Saltstack. Any chance that your Salt master
> has a copy of the rc.conf.local that doesn't have the ospf2d_flags line
> and is resetting the file back to its "correct" values?
> 
> -Scott
> 

Reply via email to