+ fix the bug reported by Milan Kocian (IPv6 route handling was broken by the RIB...
[jleu-quagga.git] / vtysh / ChangeLog
blobde62763c463c85e34d9c6022bba723bd117e929a
1 2007-06-20 Nicolas Deffayet <nicolas@deffayet.com>
3         * vtysh.c: (vtysh_write_terminal) Write 'end' when done,
4           to be consistent with telnet vty, and expected by tools
5           like rancid.
7 2007-05-01 David L Stevens <dlstevens@us.ibm.com>
9         * vtysh/extract.pl.in: added VTYSH_ZEBRA flag for route-map and
10           plist
11         * vtysh/Makefile.am: added zebra_routemap.c
12         * vtysh/vtysh.h: added VTYSH_ZEBRA flag to VTYSH_RMAP
14 2007-04-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
16         * vtysh.c: (vtysh_log_timestamp_precision,
17           no_vtysh_log_timestamp_precision) Implement new log timestamp
18           precision commands: send to all daemons.
19           (vtysh_init_vty) Install new log timestamp precision commands.
21 2007-02-12 Juergen Kammer <j.kammer@eurodata.de>
22         * extract.pl: AS4 compatibility for router bgp ASNUMBER
23         * extract.pl.in: AS4 compatibility for router bgp ASNUMBER
24         * vtysh.c: AS4 compatibility for router bgp ASNUMBER
26 2006-07-27 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
28         * vtysh_main.c: (usage) Add new -d and -E options.  And note that
29           -c can be used multiple times, possibly with embedded linefeeds.
30           (longopts) Add new -d and -E options.
31           (main) Add new -d and -E options, and create a linked list to
32           support multiple -c options.  Do not call vtysh_connect_all until
33           after vtysh_read_config(config_default) and vtysh_auth have
34           succeeded.  This prevents the vtysh.conf file from configuring
35           any daemons, and it ensures that authentication has been passed
36           before we send any commands to any daemons.  Call vtysh_connect_all
37           with any daemon name supplied with -d.  If it is unable to connect
38           to any daemons, issue an error message and exit immediately.
39           When used in -c mode, call vtysh_execute("enable") before
40           executing the commands in order to match interactive behavior. 
41           And detect embedded linefeed chars in -c commands and break them up
42           appropriately.
43         * vtysh.h: (vtysh_connect_all) Fix proto to reflect new
44           daemon_name argument, and that it now returns an integer -- the
45           number of daemons to which we were able to connect.
46         * vtysh.c: (vtysh_connect_all) Add a new daemon_name argument.
47           If supplied, connect only to that daemon.  And return
48           the number of daemons to which we were able to connect.
49           (vtysh_prompt): Performance enhancement -- make struct utsname
50           static so we call uname to get the hostname only once.
52 2006-05-24 Paul Jakma <paul.jakma@sun.com>
54         * vtysh.c: (general) Add 'show memory' command.
56 2006-05-21 Paul Jakma <paul.jakma@sun.com>
58         * vtysh.c: (vtysh_show_logging_cmd) Suppress output for daemons
59           which are not running (Andrew Schorr).
61 2006-05-17 Paul Jakma <paul.jakma@sun.com>
63         * vtysh.c: (general) Add 'show logging' command.
65 2006-01-11 Erik Smit <zoiah@zoiah.net>
67         * vtysh.c: (vtysh_config_from_file) fix regression from
68           a previous cleanup, vtysh_client.flags and cmd->daemon are
69           bitwise flags, bitwise & was meant to be used. Fixes breakage
70           of integrated config file reading.
72 2005-09-15 Hasso Tepper <hasso at quagga.net>
74         * vtysh.c: Fix warning by casting rl_bind_key 2. argument correctly.
75         * extract.pl.in: Fix warning - add isisd/topology to the includes.
77 2005-08-22 Hugo Santos <hsantos@av.it.pt>
79         * vtysh.c: Add support for BGP_IPV6M_NODE
80         
81 2005-07-12 Christian Hammers <ch@debian.org>
83         * vtysh_user.c: rename struct user to struct vtysh_user to avoid
84           clashes with sys/user.h on Linux/ARM.
86 2005-04-07 Hasso Tepper <hasso at quagga.net>
88         * Makefile.am: Remove rebuild4 target, it's not used any more by build
89           procedure. Define vtysh_cmd_FILES. Use EXTRA_DIST.
90         * extract.pl.in: Ignore "router zebra".
92 2005-03-28 Hasso Tepper <hasso at quagga.net>
94         * extract.pl.in: Use SNMP_INCLUDES to avoid warnings if compiling with
95           snmp support.
97 2005-03-09 Hasso Tepper <hasso at quagga.net>
99         * vtysh_config.c: Move password commands to the AAA_NODE. It
100           quarantees that they will appear after SERVICE_NODE to make sure
101           that encrypted passwords will work ("service password-encryption"
102           command).
104 2005-01-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
106         * vtysh.h: Remove obsolete VTYSH_INDEX_* defines.  Fix many prototypes
107           for functions with no arguments (must specify argument list as void).
108         * vtysh.c: Enhance vtysh_client array to include the daemon's name
109           and bitmask and socket path (in addition to the fd).  This allows
110           us to use loop constructs for various operations that need to be
111           applied to all client daemons, and it facilitates better error
112           messages.  Also fix some prototypes with void argument lists.
113           (vclient_close) Issue a warning message indicating which daemon's
114           socket is being closed.
115           (vtysh_execute_func,vtysh_config_from_file) Use a for loop to
116           call vtysh_client_execute.
117           (vtysh_write_terminal,write_config_integrated) Use a for loop to
118           call vtysh_client_config.
119           (vtysh_write_memory) Use a for loop to call vtysh_client_execute.
120           (vtysh_show_daemons) Use a for loop.
121           (vtysh_connect) The struct vtysh_client is now statically initialized,
122           so do not initialize it here.
123           (vtysh_connect_all) Use a for loop to call vtysh_connect.  Set
124           ripd_client pointer for use in vtysh_exit_ripd_only.
126 2005-01-23 Hasso Tepper <hasso at quagga.net>
128         * vtysh.conf.sample: Fix typo "integrated-vtysh-conf" ->
129           "integrated-vtysh-config".
130         * vtysh/vtysh.c: Implement walkup in node tree for vtysh as it
131           already works in vty.
133 2005-01-10 Hasso Tepper <hasso at quagga.net>
135         * vtysh.c: Reflect changes in lib. cmd_execute_command() should know
136           now that it's called from vtysh and must not attempt to walk up in
137           the node tree.
139 2004-12-22 Hasso Tepper <hasso at quagga.net>
141         * vtysh_config.c: No delimiter between "ip forwarding" and "ipv6
142           forwarding". Show common router-id before router nodes. Fix router
143           bgp node parsing. Move debug commands into debug node and no
144           delimiter between lines there.
146 2004-12-09 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
148         * vtysh.c: (vtysh_connect) No reason to call geteuid and getegid,
149           the results were never used.
151 2004-12-07 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
153         * vtysh.c: Make several functions static instead of global.
154           Added several commands to support destination-specific logging levels.
155           (vtysh_completion) This function is unused, so comment it out.
157 2004-11-11 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
159         * vtysh.c: (vtysh_client_execute) Fix flaws in detecting trailing
160           '\0' chars and command return code.
162 2004-10-28 Hasso Tepper <hasso at quagga.net>
164         * vtysh.c: "show running-daemons" broke users habits who are using
165           "sho run" to view running configuration. Changed it to "show
166           daemons". 
168 2004-10-20 Hasso Tepper <hasso at quagga.net>
170         * vtysh.c: Don't popen pager if command is "exit". Fixes "vtysh screws
171           up my terminal if I exit" issue.
173 2004-10-13 Hasso Tepper <hasso at quagga.net>
175         * extract.pl.in: All daemons can use both IPv6 and IPv4 access lists
176           to limit access to vty.
178 2004-10-11 Paul Jakma <paul@dishone.st>
180         * vtysh.c: (vtysh_client_execute) fix the sync fix. The 4th and
181           final sync byte is not ASCII NULL, it's actually a status integer,
182           and only ASCII NULL if CMD_SUCCESS is returned by daemon.
183           Fix pointed out by Hasso.
185 2004-10-11 Hasso Tepper <hasso at quagga.net>
187         * vtysh.c, vtysh_user.c: Make more strings const.
188         
189 2004-10-07 Hasso Tepper <hasso at quagga.net>
191         * vtysh.c, vtysh.h, vtysh_config.c, vtysh_main.c: Fix compiler
192           warnings: make strings const, signed -> unsigned, remove unused
193           variables.
194         * vtysh_config.c: Fix crash introduced with previous patch.
196 2004-10-03 Hasso Tepper <hasso at quagga.net>
198         * vtsyh_main.c: Enter into enable node by default. Disable node doesn't
199           make sense if we don't have any authentication for enable.
200         * vtysh.c: Implement "show running-daemons" command.
201         * vtysh.c: Use either integrated conf or daemon conf not both. Move
202           configuration command into "service" level.
203         * vtysh.c: Remove "write ..." commands from other nodes than enable.
204           We have "do ..." extension for that.
205         * vtysh_config.c, vtysh.c: Integrate vtysh configuration into
206           integrated one.
207         * vtysh_config.c: Use FORWARD_NODE and SERVICE_NODE vty nodes.
208         * vtysh_config.c: Make "service" lines unique in integrated config.
209         * vtysh.c: Make "service password-encryption" command work in vtysh.
210         * vtysh_config.c, vtysh.c, Makefile.am, extract.pl.in: Introduce line
211           vty commands in vtysh. Parse lib/vty.c for commands, but ignore
212           commands that don't make sense in vtysh. Closes Bugzilla #104.
213         * vtysh.c: Make "[enable] password" commands work in vtysh. Behavior
214           is similar to "log" commands - vtysh just passes commands to all
215           daemons.
216         * vtysh_main.c, vtysh_config.c, vtysh.h: Remove any code dealing with
217           configuration files specified from command line. We read/write files
218           from/to system location only (ie. remove -f again).
219         * Makefile.am: Parse zebra/router-id.c.
221 2004-09-26 Hasso Tepper <hasso at quagga.net>
223         * vtysh.c: Fix compiler warning.
225 2004-09-17 Paul Jakma <paul@dishone.st>
227         * vtysh.c: (vtysh_client_execute) trailling NULLs can be arbitrarily
228           split across reads, dont get confused by this and block forever.
230 2004-09-13 Paul Jakma <paul@dishone.st>
232         * Makefile.am: extract.pl isnt in srcdir, it's always in the builddir.
233           remove zebra/irdp.c from list - dead.
234         * extract.pl.in: match on end of filenames, filename could contain
235           various preamble due to out of tree builds. Substitute in the
236           autoconf srcdir/builddir paths for includes to cpp.
238 2004-08-28 Hasso Tepper <hasso at quagga.net>
240         * vtysh_main.c: Rename signal handling functions not to conflict
241           with functions from lib/sigevent.c.
243 2004-08-27 Hasso Tepper <hasso at quagga.net>
245         * vtysh.c: Make "terminal length <0-512>" command work in vtysh.
247 2004-08-27 Hasso Tepper <hasso at quagga.net>
249         * vtysh.c: Enable using ssh from ENABLE_NODE.
250         * vtysh_config.c: Make enable password uniq lines appear only once in
251           configuration.
252         * vtysh_main.c, vtysh_config.c, vtysh.h: Remove useless code which
253           searched configuration files from current directory. Add -f to
254           specify conf from command line.
256 2004-08-26 Hasso Tepper <hasso at quagga.net>
258         * *.c: Cosmetical changes - strip long lines, fix multiline comments
259           style, indentation fixes, remove useless comments.
260         * vtysh.h: define VTYSH_INTERFACE.
261         * vtysh.c: Use VTYSH_INTERFACE where possible. Added some related TODO
262           items.
263         * vtysh.c: Move things around a little to reduce spaghetti mess.
264         * Makefile.am: Parse only needed files from zebra daemon while
265           building vtysh_cmd.c file to supress warnings.
267 2004-06-30  Greg Troxel  <gdt@poblano.ir.bbn.com>
269         * extract.pl.in: Rename from extract.pl, with @PERL@.
271         * Makefile.am: Add vtysh_cmds.c to CLEANFILES.
273 2004-06-20 Hasso Tepper <hasso@estpak.ee>
275         * extract.pl: Zebra daemon has access lists as well.
277 2004-05-10 Hasso Tepper <hasso@estpak.ee>
279         * vtysh.c: Workaround for most hated vtysh bug - Bugzilla #58.
281 2004-04-06 Hasso Tepper <hasso@estpak.ee>
283         * vtysh_main.c: Don't save command to history if last command already
284           there is same.
285         * vtysh_main.c: Replace -e with -c.
286         * vtysh_main.c: Fix help.
288 2004-03-04 Hasso Tepper <hasso@estpak.ee>
290         * vtysh.c: Remove using PAGER.
292 2004-01-15 Paul Jakma <paul@dishone.st>
294         * vtysh_config.c: Fix up strlen to use correct string.
295         
296 2003-12-23 Hasso Tepper <hasso@estpak.ee>
297   
298         * Makefile.am extract.pl vtysh.c vtysh.h vtysh_config.c:
299           isisd integration to vtysh.
301 2003-05-01 Sergiy Vyshnevetskiy <serg@vostok.net>
303         vtysh.c: Program shouldn't terminate on pager execution failure
304         vtysh_user.c: configure support for openpam (freebsd5.0)
306 2003-04-19 Hasso Tepper <hasso@estpak.ee>
308         * extract.pl vtysh.c vtysh.h: sync daemon's route-map commands to
309         have same syntax
311 2002-09-30 Paul Jakma <paulzebra@rs250.org>
312         
313         * vtysh.c: add 'write-config (integrated|daemon)' option
314         to specifiy whether write config commands should write
315         integrated Zebra.conf file and/or per daemon files.
316         Defaults to per daemon, unless this is turned off.
318 2002-07-07  Kunihiro Ishiguro  <kunihiro@ipinfusion.com>
320         * zebra-0.93 released.
322 2001-08-19  Kunihiro Ishiguro  <kunihiro@ipinfusion.com>
324         * zebra-0.92a released.
326 2001-08-15  Kunihiro Ishiguro  <kunihiro@ipinfusion.com>
328         * zebra-0.92 released.
330 2001-02-20  Kunihiro Ishiguro  <kunihiro@zebra.org>
332         * vtysh.c (vtysh_client_config): Do not set bufsz to 120.
333         Suggested by: Matthew Grant <grantma@anathoth.gen.nz>.
335 2001-02-15  Hideto Yamakawa <yamakawa@dml.com>
337         * vtysh.c (vtysh_client_execute): Call fflush after fprintf.
339         * vtysh_config.c (vtysh_config_dump): Use VTYSH_PAGER if defined.
341 2001-02-14  Kunihiro Ishiguro  <kunihiro@zebra.org>
343         * vtysh.c (vtysh_execute_func): Add fflush before pclose.
345 2001-02-10  Kunihiro Ishiguro  <kunihiro@zebra.org>
347         * vtysh.c: VTY shell pager name.  When environment variable
348         VTYSH_PAGER is defined, use it as VTY shell pager.
350 2001-02-09  Kunihiro Ishiguro  <kunihiro@zebra.org>
352         * vtysh.c (vtysh_execute_func): Add pager argument for test of
353         pager invocation.
355 2001-02-08  Kunihiro Ishiguro  <kunihiro@zebra.org>
357         * extract.pl: Add -DHAVE_CONFIG_H option to cpp.
359 2001-02-08  Matthew Grant <grantma@anathoth.gen.nz>
361         * vtysh.c (vtysh_client_config): Use sysconf to determine output
362         buffer size.
363         (vtysh_write_memory): Set umask 0077.
364         (vtysh_connect): Check permission to the socket.
366 2001-02-01  Kunihiro Ishiguro  <kunihiro@zebra.org>
368         * zebra-0.91 is released.
370 2001-01-31  Michael Rozhavsky <mrozhavsky@opticalaccess.com>
372         * vtysh.c (new_completion): Fix problem of appending space when
373         completion is executed.
375 2001-01-23  Akihiro Mizutani <mizutani@dml.com>
377         * vtysh.c (vtysh_write_terminal): "write terminal" to all node.
379 2001-01-15  Kunihiro Ishiguro  <kunihiro@zebra.org>
381         * vtysh.c (vtysh_execute): Fix unconditional lock by other VTY.
382         Suggested by Hideto Yamakawa <yamakawa@dml.com>.
384 2001-01-09  Kunihiro Ishiguro  <kunihiro@zebra.org>
386         * zebra-0.90 is released.
388 2001-01-07  Kunihiro Ishiguro  <kunihiro@zebra.org>
390         * vtysh.h (ZEBRA_PATH): Fix new vtysh path.  Reported by "Matt
391         Ranney" <mjr@ranney.com>
393 2000-11-06  Kunihiro Ishiguro  <kunihiro@zebra.org>
395         * vtysh.c (DEFUNSH): Add "address-family vpnv4" DEFUNSH.
397 2000-10-23  Kunihiro Ishiguro  <kunihiro@zebra.org>
399         * vtysh.c (execute_command): Add two arguemnt support for
400         executing child process.
401         (vtysh_telnet_port): New command "telnet WORD PORT" is added.
403 2000-10-23  Akihiro Mizutani <mizutani@dml.com>
405         * vtysh.c (vtysh_write_memory): Display [OK] when configuration is
406         saved without problem.
408 2000-10-20  Kunihiro Ishiguro  <kunihiro@zebra.org>
410         * vtysh.c (vtysh_config_from_file): "key chain" command with -b
411         flag problem is fixed.
413 2000-10-17  Kunihiro Ishiguro  <kunihiro@zebra.org>
415         * vtysh_user.c: Change to use linklist.c.
417 2000-10-02  Kunihiro Ishiguro  <kunihiro@zebra.org>
419         * Makefile.am (noinst_HEADERS): Add vtysh_user.h.
421         * zebra-0.89 is released.
423 2000-09-22  Kunihiro Ishiguro  <kunihiro@zebra.org>
425         * vtysh_main.c: Declare thread master.
427 2000-08-25  Kunihiro Ishiguro  <kunihiro@zebra.org>
429         * vtysh_main.c (main): Add missing --help procudure.  Reported by
430         Patrick Rother <krd@roka.net>.
432 2000-08-22  Kunihiro Ishiguro  <kunihiro@zebra.org>
434         * vtysh.c (DEFUNSH): "interface IFNAME" works.
436 2000-08-20  Kunihiro Ishiguro  <kunihiro@zebra.org>
438         * vtysh_user.c: Change name from vtysh_pam.c.
440         * vtysh.conf.sample: New file for vtysh configuration.
442 2000-08-19  Kunihiro Ishiguro  <kunihiro@zebra.org>
444         * vtysh_pam.c (vtysh_pam): New file for PAM.
446 2000-08-17  Kunihiro Ishiguro  <kunihiro@zebra.org>
448         * zebra-0.88 is released.
450 2000-08-02  Kunihiro Ishiguro  <kunihiro@zebra.org>
452         * Makefile.am (vtysh_LDADD): Remove -lreadline and -lncurses.
454         * vtysh.c (vtysh_connect): Use AF_UNIX instead of AF_LOCAL for
455         backward compatibility.
457 2000-07-09  Kunihiro Ishiguro  <kunihiro@zebra.org>
459         * extract.pl: Change regexp to match DEFUN and ALIAS at the same
460         time.
462 2000-07-05  Kunihiro Ishiguro  <kunihiro@zebra.org>
464         * vtysh.c (signal_init): Ignore SIGPIPE signal.
466 2000-07-04  Kunihiro Ishiguro  <kunihiro@zebra.org>
468         * extract.pl: ALIAS command can be extracted by extract.pl.
470 2000-07-03  Kunihiro Ishiguro  <kunihiro@zebra.org>
472         * extract.pl: Fix scalar and array semantics.
474         * vtysh.c (vtysh_telnet): Add "telnet" client command.
476 2000-07-02  Kunihiro Ishiguro  <kunihiro@zebra.org>
478         * vtysh.c (main): Add -e flag for passing command from arugment.
479         (vtysh_ping): Add "ping" command for test of command execution.
480         (init_node): Add "traceroute" command.
481         (vtysh_start_shell): Add "start-shell", "start-shell bash",
482         "start-shell zsh".
483         (sigint): Add check for execute_flag for avoid duplicate prompt.
485 2000-06-28  Kunihiro Ishiguro  <kunihiro@zebra.org>
487         * vtysh.c: New file for vty shell.
488         * vtysh.h: Likewise.
489         * extract.pl: Likewise.
490         * vtysh_cmd.c: Generate by extract.pl.