<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#f4f6f6">
Hi Donald,<br>
<br>
thanks for pointing on this, partially it works:<br>
<br>
<pre># 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#
</pre>
<br>
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?<br>
<br>
Thank you.<br>
<br>
<div class="moz-cite-prefix">On 03.12.2019 03:43, Donald Sharp
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAK989yfOD0qzFxJHo5MP3WO4zk0okkTKU=V3xm=esrjPFpKumw@mail.gmail.com">
<pre class="moz-quote-pre" wrap="">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 <a class="moz-txt-link-rfc2396E" href="mailto:doka.ua@gmx.com"><doka.ua@gmx.com></a> wrote:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">
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
<a class="moz-txt-link-abbreviated" href="mailto:frog@lists.frrouting.org">frog@lists.frrouting.org</a>
<a class="moz-txt-link-freetext" href="https://lists.frrouting.org/listinfo/frog">https://lists.frrouting.org/listinfo/frog</a>
</pre>
</blockquote>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Volodymyr Litovka
"Vision without Execution is Hallucination." -- Thomas Edison</pre>
</body>
</html>