Hi Donald,
thanks for pointing on this, partially it works:
# cat inp.txt
hostname qqq
no router bgp
router bgp 12345
# vtysh -f inp.txt
# vtysh
Hello, this is FRRouting (version 7.2).
Copyright 1996-2005 Kunihiro Ishiguro, et al.
qlt# sh run
Building configuration...
Current configuration:
!
frr version 7.2
frr defaults traditional
hostname qlt
log syslog
no ipv6 forwarding
service integrated-vtysh-config
!
password 12345
!
router bgp 12345
!
line vty
!
end
qlt#
So, it FRR accepted "no router bgp / router bgp 12345", but didn't
"hostname". Are there limitations on commands which can be used with
"-f" key?
Thank you.
On 03.12.2019 03:43, Donald Sharp
wrote:
so using the `-f` option implies that you are in configuration
sub-mode for FRR. `show daemons` is not a configuration command and
will fail the installation.
donald
On Mon, Dec 2, 2019 at 3:24 PM Volodymyr Litovka <doka.ua@gmx.com> wrote:
Dear friends,
probably, I'm missing something, but I'm not able to use "vtysh -f <filename>", while "vtysh -c" works perfectly:
# vtysh -c "show daemons"
zebra bgpd watchfrr staticd
# cat inp.txt
show daemons
# vtysh -f inp.txt
line 1: % Unknown command[4]: show daemons
# echo "show daemons" | vtysh -f /dev/stdin
line 1: % Unknown command[4]: show daemons
FRR v7.2 under Ubuntu 18.04
I will appreciate any ideas on how to configure FRR using pre-generated configuration.
Thank you!
--
Volodymyr Litovka
"Vision without Execution is Hallucination." -- Thomas Edison
_______________________________________________
frog mailing list
frog@lists.frrouting.org
https://lists.frrouting.org/listinfo/frog
--
Volodymyr Litovka
"Vision without Execution is Hallucination." -- Thomas Edison