[FROG] import vrf works in running config, but not after write mem and frr restart
0xbabaf00l
0xbabaf00l at gmail.com
Wed Dec 23 19:16:20 UTC 2020
Hi list,
I'm trying to import routes from one VRF into my default VRF.
This is my sample config:
debian# show running-config
Building configuration...
Current configuration:
!
frr version 7.4
frr defaults traditional
hostname debian
log syslog informational
no ip forwarding
no ipv6 forwarding
service integrated-vtysh-config
!
router bgp 11111
!
address-family ipv4 unicast
network 1.1.1.0/24
exit-address-family
!
router bgp 22222 vrf red
!
address-family ipv4 unicast
network 2.2.2.0/24
exit-address-family
!
line vty
!
end
Now I add the import:
debian# conf t
debian(config)# router bgp 11111
debian(config-router)# address-family ipv4 unicast
debian(config-router-af)# import vrf red
debian(config-router-af)# end
Everything works fine. ‘show running-configuration’ shows the correct config.
Then I save the config and restart frr:
debian# write mem
Note: this version of vtysh never writes vtysh.conf
Building Configuration...
Integrated configuration saved to /etc/frr/frr.conf
[OK]
debian# exit
root at debian:~# systemctl restart frr
root at debian:~# vtysh
Hello, this is FRRouting (version 7.4).
Copyright 1996-2005 Kunihiro Ishiguro, et al.
debian# sh ru
Building configuration...
Current configuration:
!
frr version 7.4
frr defaults traditional
hostname debian
log syslog informational
no ip forwarding
no ipv6 forwarding
service integrated-vtysh-config
!
router bgp 11111
!
address-family ipv4 unicast
network 1.1.1.0/24
import vrf red
exit-address-family
!
router bgp 11111 vrf red
!
line vty
!
end
Why is the router bgp 22222 vrf red block now missing?
As I said, this configuration worked fine until I saved it and restarted frr.
Cheers,
Sascha
More information about the frog
mailing list