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