If the hostname setting is only a test to prove you can save the config, I suggest you try a different command for testing.  I've found the hostname setting to be unreliable because FRR derives it from the kernel.  I have a bug assigned to me to figure how to make it persistent but haven't gotten around to it yet.

On Tue, Aug 11, 2020 at 7:38 AM Heikki Lavaste <heikki.lavaste@hotmail.com> wrote:
Hi,

I have the following problem:
I'm not able save the router config.If I exit out of vtysh and jump back in, the config is reset back to defaults.

[root@frr frr]# vtysh

Hello, this is FRRouting (version 7.3.1).
Copyright 1996-2005 Kunihiro Ishiguro, et al.

frr# conf t
frr(config)# hostname Heikki
Heikki(config)# do write
Note: this version of vtysh never writes vtysh.conf
Building Configuration...
Integrated configuration saved to /etc/frr/frr.conf
[OK]
Heikki(config)# do sh running-config
Building configuration...

Current configuration:
!
frr version 7.3.1
frr defaults traditional
hostname frr
hostname Heikki
service integrated-vtysh-config
!
line vty
!
end
Heikki(config)# do sh startup-config
Heikki(config)# exit
Heikki# exit
[root@frr frr]# vtysh

Hello, this is FRRouting (version 7.3.1).
Copyright 1996-2005 Kunihiro Ishiguro, et al.

frr#

According to systemctl, the config save runs with code 0.
Aug 11 12:23:38 frr watchfrr[1514]: configuration write completed with exit cod0

I'm pretty sure I'm missing something very simple here, but just can't figure out what it is.
Any suggestions for troubleshooting steps?

Br
Heikki
_______________________________________________
frog mailing list
frog@lists.frrouting.org
https://lists.frrouting.org/listinfo/frog


--
Don Slice
Cumulus Networks