FRRouting / frr

The FRRouting Protocol Suite

Home Page:https://frrouting.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vtysh copy to running config has no effect

SRv6d opened this issue · comments

Description

copy /etc/frr/frr.conf running-config runs without error, but has no effect on the current running configuration.

Version

RRouting 10.0 (test) on Linux(5.4.0-181-generic).
Copyright 1996-2005 Kunihiro Ishiguro, et al.
configured with:
    '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-silent-rules' '--libdir=${prefix}/lib/x86_64-linux-gnu' '--libexecdir=${prefix}/lib/x86_64-linux-gnu' '--disable-maintainer-mode' '--sbindir=/usr/lib/frr' '--with-vtysh-pager=/usr/bin/pager' '--libdir=/usr/lib/x86_64-linux-gnu/frr' '--with-moduledir=/usr/lib/x86_64-linux-gnu/frr/modules' '--disable-dependency-tracking' '--enable-rpki' '--disable-scripting' '--enable-pim6d' '--with-libpam' '--enable-doc' '--enable-doc-html' '--enable-snmp' '--enable-fpm' '--disable-protobuf' '--disable-zeromq' '--enable-ospfapi' '--enable-bgp-vnc' '--enable-multipath=256' '--enable-user=frr' '--enable-group=frr' '--enable-vty-group=frrvty' '--enable-configfile-mask=0640' '--enable-logfile-mask=0640' 'build_alias=x86_64-linux-gnu' 'PYTHON=python3'

How to reproduce

Starting frr, /etc/frr/frr.conf with below content is loaded.

frr version 9.0
frr defaults datacenter
!
password zebra
!
router bgp 65536
 bgp router-id 1.3.3.7

sh run reports the following config

Building configuration...

Current configuration:
!
frr version 10.0_git
frr defaults datacenter
no ipv6 forwarding
hostname test
service integrated-vtysh-config
!
password zebra
!
router bgp 65536
 bgp router-id 1.3.3.7
 no bgp enforce-first-as
exit
!
end

To change the running config, I'll configure an example static prefix 2001:db8::/32.

test# conf t
test(config)# router bgp 65536
test(config-router)# addr ipv6 uni
test(config-router-af)# net 2001:db8::/32
test(config-router-af)# redist static

Resulting in the following running config.

Building configuration...

Current configuration:
!
frr version 10.0_git
frr defaults datacenter
no ipv6 forwarding
hostname test
service integrated-vtysh-config
!
password zebra
!
router bgp 65536
 bgp router-id 1.3.3.7
 no bgp enforce-first-as
 !
 address-family ipv6 unicast
  network 2001:db8::/32
  redistribute static
 exit-address-family
exit
!
end

Exiting the configuration context, running copy /etc/frr/frr.conf running-config runs but has not effect on the current running configuration.

test# copy /etc/frr/frr.conf running-config
test# sh run
Building configuration...

Current configuration:
!
frr version 10.0_git
frr defaults datacenter
no ipv6 forwarding
hostname test
service integrated-vtysh-config
!
password zebra
!
router bgp 65536
 bgp router-id 1.3.3.7
 no bgp enforce-first-as
 !
 address-family ipv6 unicast
  network 2001:db8::/32
  redistribute static
 exit-address-family
exit
!
end

Expected behavior

I would expect the running configuration to match the startup / saved configuration.

Actual behavior

The running configuration is unchanged.

Additional context

No response

Checklist

  • I have searched the open issues for this bug.
  • I have not included sensitive information in this report.

This is not behavior that has ever been programmed and is not expected to ever work. If you want to reload frr.conf you need to issue systemctl reload frr after you issue the copy statement.

@donaldsharp So this is just missing an implementation and there are no future plans to create one? I find not doing what the CLI suggests without any kind of feedback less than ideal, especially since I could not find any FRR specific documentation for this.

I told you the implementation, use systemctl reload frr

I told you the implementation, use systemctl reload frr

Not really a viable "implementation" if FRR is not run by an init daemon like systemd.