blob: f2ba3332603f55fe5cd7d7a30b39639f65f3910d [file] [log] [blame]
Paul Jakma8454b052007-06-20 15:22:14 +000012007-06-20 Nicolas Deffayet <nicolas@deffayet.com>
2
3 * vtysh.c: (vtysh_write_terminal) Write 'end' when done,
4 to be consistent with telnet vty, and expected by tools
5 like rancid.
6
Paul Jakma7514fb72007-05-02 16:05:35 +000072007-05-01 David L Stevens <dlstevens@us.ibm.com>
8
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
13
Andrew J. Schorrc749b722007-04-29 03:53:31 +0000142007-04-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
15
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.
20
Andrew J. Schorrf366ad32006-07-27 18:01:41 +0000212006-07-27 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
22
23 * vtysh_main.c: (usage) Add new -d and -E options. And note that
24 -c can be used multiple times, possibly with embedded linefeeds.
25 (longopts) Add new -d and -E options.
26 (main) Add new -d and -E options, and create a linked list to
27 support multiple -c options. Do not call vtysh_connect_all until
28 after vtysh_read_config(config_default) and vtysh_auth have
29 succeeded. This prevents the vtysh.conf file from configuring
30 any daemons, and it ensures that authentication has been passed
31 before we send any commands to any daemons. Call vtysh_connect_all
32 with any daemon name supplied with -d. If it is unable to connect
33 to any daemons, issue an error message and exit immediately.
34 When used in -c mode, call vtysh_execute("enable") before
35 executing the commands in order to match interactive behavior.
36 And detect embedded linefeed chars in -c commands and break them up
37 appropriately.
38 * vtysh.h: (vtysh_connect_all) Fix proto to reflect new
39 daemon_name argument, and that it now returns an integer -- the
40 number of daemons to which we were able to connect.
41 * vtysh.c: (vtysh_connect_all) Add a new daemon_name argument.
42 If supplied, connect only to that daemon. And return
43 the number of daemons to which we were able to connect.
44 (vtysh_prompt): Performance enhancement -- make struct utsname
45 static so we call uname to get the hostname only once.
46
Paul Jakma362b4032006-05-28 07:54:45 +0000472006-05-24 Paul Jakma <paul.jakma@sun.com>
48
49 * vtysh.c: (general) Add 'show memory' command.
50
Paul Jakma4150f332006-05-23 22:10:55 +0000512006-05-21 Paul Jakma <paul.jakma@sun.com>
52
53 * vtysh.c: (vtysh_show_logging_cmd) Suppress output for daemons
54 which are not running (Andrew Schorr).
55
Paul Jakmadbf7d132006-05-23 22:10:01 +0000562006-05-17 Paul Jakma <paul.jakma@sun.com>
57
58 * vtysh.c: (general) Add 'show logging' command.
59
paul44316fe2006-01-11 01:38:25 +0000602006-01-11 Erik Smit <zoiah@zoiah.net>
61
62 * vtysh.c: (vtysh_config_from_file) fix regression from
63 a previous cleanup, vtysh_client.flags and cmd->daemon are
64 bitwise flags, bitwise & was meant to be used. Fixes breakage
65 of integrated config file reading.
66
hasso53a6f932005-09-15 06:50:53 +0000672005-09-15 Hasso Tepper <hasso at quagga.net>
68
69 * vtysh.c: Fix warning by casting rl_bind_key 2. argument correctly.
70 * extract.pl.in: Fix warning - add isisd/topology to the includes.
71
paul57b5b7e2005-08-22 22:44:29 +0000722005-08-22 Hugo Santos <hsantos@av.it.pt>
73
74 * vtysh.c: Add support for BGP_IPV6M_NODE
75
paulb8994082005-07-12 15:15:02 +0000762005-07-12 Christian Hammers <ch@debian.org>
77
78 * vtysh_user.c: rename struct user to struct vtysh_user to avoid
paule3782102005-07-12 16:47:01 +000079 clashes with sys/user.h on Linux/ARM.
paulb8994082005-07-12 15:15:02 +000080
hassob5d518f2005-04-07 17:07:39 +0000812005-04-07 Hasso Tepper <hasso at quagga.net>
82
83 * Makefile.am: Remove rebuild4 target, it's not used any more by build
84 procedure. Define vtysh_cmd_FILES. Use EXTRA_DIST.
hasso528bed42005-04-07 18:42:09 +000085 * extract.pl.in: Ignore "router zebra".
hassob5d518f2005-04-07 17:07:39 +000086
hasso7f223962005-03-28 15:38:16 +0000872005-03-28 Hasso Tepper <hasso at quagga.net>
88
89 * extract.pl.in: Use SNMP_INCLUDES to avoid warnings if compiling with
90 snmp support.
91
hasso060d4382005-03-09 12:41:14 +0000922005-03-09 Hasso Tepper <hasso at quagga.net>
93
94 * vtysh_config.c: Move password commands to the AAA_NODE. It
95 quarantees that they will appear after SERVICE_NODE to make sure
96 that encrypted passwords will work ("service password-encryption"
97 command).
98
ajsb1aa1472005-01-28 21:11:46 +0000992005-01-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
100
101 * vtysh.h: Remove obsolete VTYSH_INDEX_* defines. Fix many prototypes
102 for functions with no arguments (must specify argument list as void).
103 * vtysh.c: Enhance vtysh_client array to include the daemon's name
104 and bitmask and socket path (in addition to the fd). This allows
105 us to use loop constructs for various operations that need to be
106 applied to all client daemons, and it facilitates better error
107 messages. Also fix some prototypes with void argument lists.
108 (vclient_close) Issue a warning message indicating which daemon's
109 socket is being closed.
110 (vtysh_execute_func,vtysh_config_from_file) Use a for loop to
111 call vtysh_client_execute.
112 (vtysh_write_terminal,write_config_integrated) Use a for loop to
113 call vtysh_client_config.
114 (vtysh_write_memory) Use a for loop to call vtysh_client_execute.
115 (vtysh_show_daemons) Use a for loop.
116 (vtysh_connect) The struct vtysh_client is now statically initialized,
117 so do not initialize it here.
118 (vtysh_connect_all) Use a for loop to call vtysh_connect. Set
119 ripd_client pointer for use in vtysh_exit_ripd_only.
120
hasso90b42142005-01-23 19:24:46 +00001212005-01-23 Hasso Tepper <hasso at quagga.net>
122
123 * vtysh.conf.sample: Fix typo "integrated-vtysh-conf" ->
124 "integrated-vtysh-config".
hasso13bfca72005-01-23 21:42:25 +0000125 * vtysh/vtysh.c: Implement walkup in node tree for vtysh as it
126 already works in vty.
hasso90b42142005-01-23 19:24:46 +0000127
hasso87d683b2005-01-16 23:31:54 +00001282005-01-10 Hasso Tepper <hasso at quagga.net>
129
130 * vtysh.c: Reflect changes in lib. cmd_execute_command() should know
131 now that it's called from vtysh and must not attempt to walk up in
132 the node tree.
133
hasso9a30ee52004-12-22 09:27:42 +00001342004-12-22 Hasso Tepper <hasso at quagga.net>
135
136 * vtysh_config.c: No delimiter between "ip forwarding" and "ipv6
hassodfbb9122004-12-22 11:53:09 +0000137 forwarding". Show common router-id before router nodes. Fix router
138 bgp node parsing. Move debug commands into debug node and no
139 delimiter between lines there.
hasso9a30ee52004-12-22 09:27:42 +0000140
ajs09c3adb2004-12-09 15:15:03 +00001412004-12-09 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
142
143 * vtysh.c: (vtysh_connect) No reason to call geteuid and getegid,
144 the results were never used.
145
ajs274a4a42004-12-07 15:39:31 +00001462004-12-07 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
147
148 * vtysh.c: Make several functions static instead of global.
149 Added several commands to support destination-specific logging levels.
150 (vtysh_completion) This function is unused, so comment it out.
151
ajs85fb1e62004-11-11 14:03:39 +00001522004-11-11 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
153
154 * vtysh.c: (vtysh_client_execute) Fix flaws in detecting trailing
155 '\0' chars and command return code.
156
hassof2799e62004-10-28 17:43:11 +00001572004-10-28 Hasso Tepper <hasso at quagga.net>
158
159 * vtysh.c: "show running-daemons" broke users habits who are using
160 "sho run" to view running configuration. Changed it to "show
161 daemons".
162
hasso97b7db22004-10-20 19:07:48 +00001632004-10-20 Hasso Tepper <hasso at quagga.net>
164
165 * vtysh.c: Don't popen pager if command is "exit". Fixes "vtysh screws
166 up my terminal if I exit" issue.
167
hasso43fb1352004-10-13 08:47:32 +00001682004-10-13 Hasso Tepper <hasso at quagga.net>
169
170 * extract.pl.in: All daemons can use both IPv6 and IPv4 access lists
171 to limit access to vty.
172
paulf4ad4db2004-10-13 14:52:22 +00001732004-10-11 Paul Jakma <paul@dishone.st>
paul0921d482004-10-11 18:21:55 +0000174
175 * vtysh.c: (vtysh_client_execute) fix the sync fix. The 4th and
176 final sync byte is not ASCII NULL, it's actually a status integer,
177 and only ASCII NULL if CMD_SUCCESS is returned by daemon.
178 Fix pointed out by Hasso.
179
hasso5862ff52004-10-11 13:20:40 +00001802004-10-11 Hasso Tepper <hasso at quagga.net>
181
182 * vtysh.c, vtysh_user.c: Make more strings const.
183
hassodda09522004-10-07 21:40:25 +00001842004-10-07 Hasso Tepper <hasso at quagga.net>
185
186 * vtysh.c, vtysh.h, vtysh_config.c, vtysh_main.c: Fix compiler
187 warnings: make strings const, signed -> unsigned, remove unused
188 variables.
189 * vtysh_config.c: Fix crash introduced with previous patch.
190
hassoe7168df2004-10-03 20:11:32 +00001912004-10-03 Hasso Tepper <hasso at quagga.net>
192
193 * vtsyh_main.c: Enter into enable node by default. Disable node doesn't
194 make sense if we don't have any authentication for enable.
195 * vtysh.c: Implement "show running-daemons" command.
196 * vtysh.c: Use either integrated conf or daemon conf not both. Move
197 configuration command into "service" level.
198 * vtysh.c: Remove "write ..." commands from other nodes than enable.
199 We have "do ..." extension for that.
200 * vtysh_config.c, vtysh.c: Integrate vtysh configuration into
201 integrated one.
202 * vtysh_config.c: Use FORWARD_NODE and SERVICE_NODE vty nodes.
203 * vtysh_config.c: Make "service" lines unique in integrated config.
204 * vtysh.c: Make "service password-encryption" command work in vtysh.
205 * vtysh_config.c, vtysh.c, Makefile.am, extract.pl.in: Introduce line
206 vty commands in vtysh. Parse lib/vty.c for commands, but ignore
207 commands that don't make sense in vtysh. Closes Bugzilla #104.
208 * vtysh.c: Make "[enable] password" commands work in vtysh. Behavior
209 is similar to "log" commands - vtysh just passes commands to all
210 daemons.
211 * vtysh_main.c, vtysh_config.c, vtysh.h: Remove any code dealing with
212 configuration files specified from command line. We read/write files
213 from/to system location only (ie. remove -f again).
214 * Makefile.am: Parse zebra/router-id.c.
215
hasso42895462004-09-26 16:25:07 +00002162004-09-26 Hasso Tepper <hasso at quagga.net>
217
218 * vtysh.c: Fix compiler warning.
219
paul2852de12004-09-17 06:52:16 +00002202004-09-17 Paul Jakma <paul@dishone.st>
221
222 * vtysh.c: (vtysh_client_execute) trailling NULLs can be arbitrarily
223 split across reads, dont get confused by this and block forever.
224
paul0e82d0e2004-09-13 05:00:18 +00002252004-09-13 Paul Jakma <paul@dishone.st>
226
227 * Makefile.am: extract.pl isnt in srcdir, it's always in the builddir.
paulb63dc1f2004-09-13 12:59:08 +0000228 remove zebra/irdp.c from list - dead.
paul0e82d0e2004-09-13 05:00:18 +0000229 * extract.pl.in: match on end of filenames, filename could contain
paulb63dc1f2004-09-13 12:59:08 +0000230 various preamble due to out of tree builds. Substitute in the
231 autoconf srcdir/builddir paths for includes to cpp.
paul0e82d0e2004-09-13 05:00:18 +0000232
hassoe42f5a32004-08-28 17:04:33 +00002332004-08-28 Hasso Tepper <hasso at quagga.net>
234
235 * vtysh_main.c: Rename signal handling functions not to conflict
236 with functions from lib/sigevent.c.
237
hasso67e29ab2004-08-26 22:21:31 +00002382004-08-27 Hasso Tepper <hasso at quagga.net>
239
hasso34553cc2004-08-27 13:56:39 +0000240 * vtysh.c: Make "terminal length <0-512>" command work in vtysh.
241
2422004-08-27 Hasso Tepper <hasso at quagga.net>
243
hasso67e29ab2004-08-26 22:21:31 +0000244 * vtysh.c: Enable using ssh from ENABLE_NODE.
245 * vtysh_config.c: Make enable password uniq lines appear only once in
246 configuration.
247 * vtysh_main.c, vtysh_config.c, vtysh.h: Remove useless code which
248 searched configuration files from current directory. Add -f to
249 specify conf from command line.
250
2512004-08-26 Hasso Tepper <hasso at quagga.net>
hasso95e735b2004-08-26 13:08:30 +0000252
253 * *.c: Cosmetical changes - strip long lines, fix multiline comments
254 style, indentation fixes, remove useless comments.
255 * vtysh.h: define VTYSH_INTERFACE.
256 * vtysh.c: Use VTYSH_INTERFACE where possible. Added some related TODO
257 items.
258 * vtysh.c: Move things around a little to reduce spaghetti mess.
259 * Makefile.am: Parse only needed files from zebra daemon while
260 building vtysh_cmd.c file to supress warnings.
261
gdtfc9d0742004-06-30 14:25:12 +00002622004-06-30 Greg Troxel <gdt@poblano.ir.bbn.com>
263
264 * extract.pl.in: Rename from extract.pl, with @PERL@.
265
266 * Makefile.am: Add vtysh_cmds.c to CLEANFILES.
267
hasso6c0f9a72004-06-20 09:30:57 +00002682004-06-20 Hasso Tepper <hasso@estpak.ee>
269
270 * extract.pl: Zebra daemon has access lists as well.
271
hasso2a56df92004-05-09 23:16:40 +00002722004-05-10 Hasso Tepper <hasso@estpak.ee>
273
274 * vtysh.c: Workaround for most hated vtysh bug - Bugzilla #58.
275
hasso4991f6c2004-04-06 11:36:17 +00002762004-04-06 Hasso Tepper <hasso@estpak.ee>
277
278 * vtysh_main.c: Don't save command to history if last command already
279 there is same.
280 * vtysh_main.c: Replace -e with -c.
281 * vtysh_main.c: Fix help.
282
hassofa2b17e2004-03-04 17:45:00 +00002832004-03-04 Hasso Tepper <hasso@estpak.ee>
284
285 * vtysh.c: Remove using PAGER.
286
paul13b8baa2004-01-15 01:00:49 +00002872004-01-15 Paul Jakma <paul@dishone.st>
288
289 * vtysh_config.c: Fix up strlen to use correct string.
290
hassoba6dffe2003-12-23 10:43:09 +00002912003-12-23 Hasso Tepper <hasso@estpak.ee>
292
293 * Makefile.am extract.pl vtysh.c vtysh.h vtysh_config.c:
294 isisd integration to vtysh.
295
paul445f1432003-05-16 19:00:31 +00002962003-05-01 Sergiy Vyshnevetskiy <serg@vostok.net>
297
298 vtysh.c: Program shouldn't terminate on pager execution failure
299 vtysh_user.c: configure support for openpam (freebsd5.0)
300
3012003-04-19 Hasso Tepper <hasso@estpak.ee>
302
303 * extract.pl vtysh.c vtysh.h: sync daemon's route-map commands to
304 have same syntax
305
paul4fc01e62002-12-13 20:49:00 +00003062002-09-30 Paul Jakma <paulzebra@rs250.org>
307
308 * vtysh.c: add 'write-config (integrated|daemon)' option
309 to specifiy whether write config commands should write
310 integrated Zebra.conf file and/or per daemon files.
311 Defaults to per daemon, unless this is turned off.
312
paul718e3742002-12-13 20:15:29 +00003132002-07-07 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
314
315 * zebra-0.93 released.
316
3172001-08-19 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
318
319 * zebra-0.92a released.
320
3212001-08-15 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
322
323 * zebra-0.92 released.
324
3252001-02-20 Kunihiro Ishiguro <kunihiro@zebra.org>
326
327 * vtysh.c (vtysh_client_config): Do not set bufsz to 120.
328 Suggested by: Matthew Grant <grantma@anathoth.gen.nz>.
329
3302001-02-15 Hideto Yamakawa <yamakawa@dml.com>
331
332 * vtysh.c (vtysh_client_execute): Call fflush after fprintf.
333
334 * vtysh_config.c (vtysh_config_dump): Use VTYSH_PAGER if defined.
335
3362001-02-14 Kunihiro Ishiguro <kunihiro@zebra.org>
337
338 * vtysh.c (vtysh_execute_func): Add fflush before pclose.
339
3402001-02-10 Kunihiro Ishiguro <kunihiro@zebra.org>
341
342 * vtysh.c: VTY shell pager name. When environment variable
343 VTYSH_PAGER is defined, use it as VTY shell pager.
344
3452001-02-09 Kunihiro Ishiguro <kunihiro@zebra.org>
346
347 * vtysh.c (vtysh_execute_func): Add pager argument for test of
348 pager invocation.
349
3502001-02-08 Kunihiro Ishiguro <kunihiro@zebra.org>
351
352 * extract.pl: Add -DHAVE_CONFIG_H option to cpp.
353
3542001-02-08 Matthew Grant <grantma@anathoth.gen.nz>
355
356 * vtysh.c (vtysh_client_config): Use sysconf to determine output
357 buffer size.
358 (vtysh_write_memory): Set umask 0077.
359 (vtysh_connect): Check permission to the socket.
360
3612001-02-01 Kunihiro Ishiguro <kunihiro@zebra.org>
362
363 * zebra-0.91 is released.
364
3652001-01-31 Michael Rozhavsky <mrozhavsky@opticalaccess.com>
366
367 * vtysh.c (new_completion): Fix problem of appending space when
368 completion is executed.
369
3702001-01-23 Akihiro Mizutani <mizutani@dml.com>
371
372 * vtysh.c (vtysh_write_terminal): "write terminal" to all node.
373
3742001-01-15 Kunihiro Ishiguro <kunihiro@zebra.org>
375
376 * vtysh.c (vtysh_execute): Fix unconditional lock by other VTY.
377 Suggested by Hideto Yamakawa <yamakawa@dml.com>.
378
3792001-01-09 Kunihiro Ishiguro <kunihiro@zebra.org>
380
381 * zebra-0.90 is released.
382
3832001-01-07 Kunihiro Ishiguro <kunihiro@zebra.org>
384
385 * vtysh.h (ZEBRA_PATH): Fix new vtysh path. Reported by "Matt
386 Ranney" <mjr@ranney.com>
387
3882000-11-06 Kunihiro Ishiguro <kunihiro@zebra.org>
389
390 * vtysh.c (DEFUNSH): Add "address-family vpnv4" DEFUNSH.
391
3922000-10-23 Kunihiro Ishiguro <kunihiro@zebra.org>
393
394 * vtysh.c (execute_command): Add two arguemnt support for
395 executing child process.
396 (vtysh_telnet_port): New command "telnet WORD PORT" is added.
397
3982000-10-23 Akihiro Mizutani <mizutani@dml.com>
399
400 * vtysh.c (vtysh_write_memory): Display [OK] when configuration is
401 saved without problem.
402
4032000-10-20 Kunihiro Ishiguro <kunihiro@zebra.org>
404
405 * vtysh.c (vtysh_config_from_file): "key chain" command with -b
406 flag problem is fixed.
407
4082000-10-17 Kunihiro Ishiguro <kunihiro@zebra.org>
409
410 * vtysh_user.c: Change to use linklist.c.
411
4122000-10-02 Kunihiro Ishiguro <kunihiro@zebra.org>
413
414 * Makefile.am (noinst_HEADERS): Add vtysh_user.h.
415
416 * zebra-0.89 is released.
417
4182000-09-22 Kunihiro Ishiguro <kunihiro@zebra.org>
419
420 * vtysh_main.c: Declare thread master.
421
4222000-08-25 Kunihiro Ishiguro <kunihiro@zebra.org>
423
424 * vtysh_main.c (main): Add missing --help procudure. Reported by
425 Patrick Rother <krd@roka.net>.
426
4272000-08-22 Kunihiro Ishiguro <kunihiro@zebra.org>
428
429 * vtysh.c (DEFUNSH): "interface IFNAME" works.
430
4312000-08-20 Kunihiro Ishiguro <kunihiro@zebra.org>
432
433 * vtysh_user.c: Change name from vtysh_pam.c.
434
435 * vtysh.conf.sample: New file for vtysh configuration.
436
4372000-08-19 Kunihiro Ishiguro <kunihiro@zebra.org>
438
439 * vtysh_pam.c (vtysh_pam): New file for PAM.
440
4412000-08-17 Kunihiro Ishiguro <kunihiro@zebra.org>
442
443 * zebra-0.88 is released.
444
4452000-08-02 Kunihiro Ishiguro <kunihiro@zebra.org>
446
447 * Makefile.am (vtysh_LDADD): Remove -lreadline and -lncurses.
448
449 * vtysh.c (vtysh_connect): Use AF_UNIX instead of AF_LOCAL for
450 backward compatibility.
451
4522000-07-09 Kunihiro Ishiguro <kunihiro@zebra.org>
453
454 * extract.pl: Change regexp to match DEFUN and ALIAS at the same
455 time.
456
4572000-07-05 Kunihiro Ishiguro <kunihiro@zebra.org>
458
459 * vtysh.c (signal_init): Ignore SIGPIPE signal.
460
4612000-07-04 Kunihiro Ishiguro <kunihiro@zebra.org>
462
463 * extract.pl: ALIAS command can be extracted by extract.pl.
464
4652000-07-03 Kunihiro Ishiguro <kunihiro@zebra.org>
466
467 * extract.pl: Fix scalar and array semantics.
468
469 * vtysh.c (vtysh_telnet): Add "telnet" client command.
470
4712000-07-02 Kunihiro Ishiguro <kunihiro@zebra.org>
472
473 * vtysh.c (main): Add -e flag for passing command from arugment.
474 (vtysh_ping): Add "ping" command for test of command execution.
475 (init_node): Add "traceroute" command.
476 (vtysh_start_shell): Add "start-shell", "start-shell bash",
477 "start-shell zsh".
478 (sigint): Add check for execute_flag for avoid duplicate prompt.
479
4802000-06-28 Kunihiro Ishiguro <kunihiro@zebra.org>
481
482 * vtysh.c: New file for vty shell.
483 * vtysh.h: Likewise.
484 * extract.pl: Likewise.
485 * vtysh_cmd.c: Generate by extract.pl.