blob: 11192c1f72ad7b4f464bfb36c64358e24f5814c6 [file] [log] [blame]
paul44316fe2006-01-11 01:38:25 +000012006-01-11 Erik Smit <zoiah@zoiah.net>
2
3 * vtysh.c: (vtysh_config_from_file) fix regression from
4 a previous cleanup, vtysh_client.flags and cmd->daemon are
5 bitwise flags, bitwise & was meant to be used. Fixes breakage
6 of integrated config file reading.
7
hasso53a6f932005-09-15 06:50:53 +000082005-09-15 Hasso Tepper <hasso at quagga.net>
9
10 * vtysh.c: Fix warning by casting rl_bind_key 2. argument correctly.
11 * extract.pl.in: Fix warning - add isisd/topology to the includes.
12
paul57b5b7e2005-08-22 22:44:29 +0000132005-08-22 Hugo Santos <hsantos@av.it.pt>
14
15 * vtysh.c: Add support for BGP_IPV6M_NODE
16
paulb8994082005-07-12 15:15:02 +0000172005-07-12 Christian Hammers <ch@debian.org>
18
19 * vtysh_user.c: rename struct user to struct vtysh_user to avoid
paule3782102005-07-12 16:47:01 +000020 clashes with sys/user.h on Linux/ARM.
paulb8994082005-07-12 15:15:02 +000021
hassob5d518f2005-04-07 17:07:39 +0000222005-04-07 Hasso Tepper <hasso at quagga.net>
23
24 * Makefile.am: Remove rebuild4 target, it's not used any more by build
25 procedure. Define vtysh_cmd_FILES. Use EXTRA_DIST.
hasso528bed42005-04-07 18:42:09 +000026 * extract.pl.in: Ignore "router zebra".
hassob5d518f2005-04-07 17:07:39 +000027
hasso7f223962005-03-28 15:38:16 +0000282005-03-28 Hasso Tepper <hasso at quagga.net>
29
30 * extract.pl.in: Use SNMP_INCLUDES to avoid warnings if compiling with
31 snmp support.
32
hasso060d4382005-03-09 12:41:14 +0000332005-03-09 Hasso Tepper <hasso at quagga.net>
34
35 * vtysh_config.c: Move password commands to the AAA_NODE. It
36 quarantees that they will appear after SERVICE_NODE to make sure
37 that encrypted passwords will work ("service password-encryption"
38 command).
39
ajsb1aa1472005-01-28 21:11:46 +0000402005-01-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
41
42 * vtysh.h: Remove obsolete VTYSH_INDEX_* defines. Fix many prototypes
43 for functions with no arguments (must specify argument list as void).
44 * vtysh.c: Enhance vtysh_client array to include the daemon's name
45 and bitmask and socket path (in addition to the fd). This allows
46 us to use loop constructs for various operations that need to be
47 applied to all client daemons, and it facilitates better error
48 messages. Also fix some prototypes with void argument lists.
49 (vclient_close) Issue a warning message indicating which daemon's
50 socket is being closed.
51 (vtysh_execute_func,vtysh_config_from_file) Use a for loop to
52 call vtysh_client_execute.
53 (vtysh_write_terminal,write_config_integrated) Use a for loop to
54 call vtysh_client_config.
55 (vtysh_write_memory) Use a for loop to call vtysh_client_execute.
56 (vtysh_show_daemons) Use a for loop.
57 (vtysh_connect) The struct vtysh_client is now statically initialized,
58 so do not initialize it here.
59 (vtysh_connect_all) Use a for loop to call vtysh_connect. Set
60 ripd_client pointer for use in vtysh_exit_ripd_only.
61
hasso90b42142005-01-23 19:24:46 +0000622005-01-23 Hasso Tepper <hasso at quagga.net>
63
64 * vtysh.conf.sample: Fix typo "integrated-vtysh-conf" ->
65 "integrated-vtysh-config".
hasso13bfca72005-01-23 21:42:25 +000066 * vtysh/vtysh.c: Implement walkup in node tree for vtysh as it
67 already works in vty.
hasso90b42142005-01-23 19:24:46 +000068
hasso87d683b2005-01-16 23:31:54 +0000692005-01-10 Hasso Tepper <hasso at quagga.net>
70
71 * vtysh.c: Reflect changes in lib. cmd_execute_command() should know
72 now that it's called from vtysh and must not attempt to walk up in
73 the node tree.
74
hasso9a30ee52004-12-22 09:27:42 +0000752004-12-22 Hasso Tepper <hasso at quagga.net>
76
77 * vtysh_config.c: No delimiter between "ip forwarding" and "ipv6
hassodfbb9122004-12-22 11:53:09 +000078 forwarding". Show common router-id before router nodes. Fix router
79 bgp node parsing. Move debug commands into debug node and no
80 delimiter between lines there.
hasso9a30ee52004-12-22 09:27:42 +000081
ajs09c3adb2004-12-09 15:15:03 +0000822004-12-09 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
83
84 * vtysh.c: (vtysh_connect) No reason to call geteuid and getegid,
85 the results were never used.
86
ajs274a4a42004-12-07 15:39:31 +0000872004-12-07 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
88
89 * vtysh.c: Make several functions static instead of global.
90 Added several commands to support destination-specific logging levels.
91 (vtysh_completion) This function is unused, so comment it out.
92
ajs85fb1e62004-11-11 14:03:39 +0000932004-11-11 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
94
95 * vtysh.c: (vtysh_client_execute) Fix flaws in detecting trailing
96 '\0' chars and command return code.
97
hassof2799e62004-10-28 17:43:11 +0000982004-10-28 Hasso Tepper <hasso at quagga.net>
99
100 * vtysh.c: "show running-daemons" broke users habits who are using
101 "sho run" to view running configuration. Changed it to "show
102 daemons".
103
hasso97b7db22004-10-20 19:07:48 +00001042004-10-20 Hasso Tepper <hasso at quagga.net>
105
106 * vtysh.c: Don't popen pager if command is "exit". Fixes "vtysh screws
107 up my terminal if I exit" issue.
108
hasso43fb1352004-10-13 08:47:32 +00001092004-10-13 Hasso Tepper <hasso at quagga.net>
110
111 * extract.pl.in: All daemons can use both IPv6 and IPv4 access lists
112 to limit access to vty.
113
paulf4ad4db2004-10-13 14:52:22 +00001142004-10-11 Paul Jakma <paul@dishone.st>
paul0921d482004-10-11 18:21:55 +0000115
116 * vtysh.c: (vtysh_client_execute) fix the sync fix. The 4th and
117 final sync byte is not ASCII NULL, it's actually a status integer,
118 and only ASCII NULL if CMD_SUCCESS is returned by daemon.
119 Fix pointed out by Hasso.
120
hasso5862ff52004-10-11 13:20:40 +00001212004-10-11 Hasso Tepper <hasso at quagga.net>
122
123 * vtysh.c, vtysh_user.c: Make more strings const.
124
hassodda09522004-10-07 21:40:25 +00001252004-10-07 Hasso Tepper <hasso at quagga.net>
126
127 * vtysh.c, vtysh.h, vtysh_config.c, vtysh_main.c: Fix compiler
128 warnings: make strings const, signed -> unsigned, remove unused
129 variables.
130 * vtysh_config.c: Fix crash introduced with previous patch.
131
hassoe7168df2004-10-03 20:11:32 +00001322004-10-03 Hasso Tepper <hasso at quagga.net>
133
134 * vtsyh_main.c: Enter into enable node by default. Disable node doesn't
135 make sense if we don't have any authentication for enable.
136 * vtysh.c: Implement "show running-daemons" command.
137 * vtysh.c: Use either integrated conf or daemon conf not both. Move
138 configuration command into "service" level.
139 * vtysh.c: Remove "write ..." commands from other nodes than enable.
140 We have "do ..." extension for that.
141 * vtysh_config.c, vtysh.c: Integrate vtysh configuration into
142 integrated one.
143 * vtysh_config.c: Use FORWARD_NODE and SERVICE_NODE vty nodes.
144 * vtysh_config.c: Make "service" lines unique in integrated config.
145 * vtysh.c: Make "service password-encryption" command work in vtysh.
146 * vtysh_config.c, vtysh.c, Makefile.am, extract.pl.in: Introduce line
147 vty commands in vtysh. Parse lib/vty.c for commands, but ignore
148 commands that don't make sense in vtysh. Closes Bugzilla #104.
149 * vtysh.c: Make "[enable] password" commands work in vtysh. Behavior
150 is similar to "log" commands - vtysh just passes commands to all
151 daemons.
152 * vtysh_main.c, vtysh_config.c, vtysh.h: Remove any code dealing with
153 configuration files specified from command line. We read/write files
154 from/to system location only (ie. remove -f again).
155 * Makefile.am: Parse zebra/router-id.c.
156
hasso42895462004-09-26 16:25:07 +00001572004-09-26 Hasso Tepper <hasso at quagga.net>
158
159 * vtysh.c: Fix compiler warning.
160
paul2852de12004-09-17 06:52:16 +00001612004-09-17 Paul Jakma <paul@dishone.st>
162
163 * vtysh.c: (vtysh_client_execute) trailling NULLs can be arbitrarily
164 split across reads, dont get confused by this and block forever.
165
paul0e82d0e2004-09-13 05:00:18 +00001662004-09-13 Paul Jakma <paul@dishone.st>
167
168 * Makefile.am: extract.pl isnt in srcdir, it's always in the builddir.
paulb63dc1f2004-09-13 12:59:08 +0000169 remove zebra/irdp.c from list - dead.
paul0e82d0e2004-09-13 05:00:18 +0000170 * extract.pl.in: match on end of filenames, filename could contain
paulb63dc1f2004-09-13 12:59:08 +0000171 various preamble due to out of tree builds. Substitute in the
172 autoconf srcdir/builddir paths for includes to cpp.
paul0e82d0e2004-09-13 05:00:18 +0000173
hassoe42f5a32004-08-28 17:04:33 +00001742004-08-28 Hasso Tepper <hasso at quagga.net>
175
176 * vtysh_main.c: Rename signal handling functions not to conflict
177 with functions from lib/sigevent.c.
178
hasso67e29ab2004-08-26 22:21:31 +00001792004-08-27 Hasso Tepper <hasso at quagga.net>
180
hasso34553cc2004-08-27 13:56:39 +0000181 * vtysh.c: Make "terminal length <0-512>" command work in vtysh.
182
1832004-08-27 Hasso Tepper <hasso at quagga.net>
184
hasso67e29ab2004-08-26 22:21:31 +0000185 * vtysh.c: Enable using ssh from ENABLE_NODE.
186 * vtysh_config.c: Make enable password uniq lines appear only once in
187 configuration.
188 * vtysh_main.c, vtysh_config.c, vtysh.h: Remove useless code which
189 searched configuration files from current directory. Add -f to
190 specify conf from command line.
191
1922004-08-26 Hasso Tepper <hasso at quagga.net>
hasso95e735b2004-08-26 13:08:30 +0000193
194 * *.c: Cosmetical changes - strip long lines, fix multiline comments
195 style, indentation fixes, remove useless comments.
196 * vtysh.h: define VTYSH_INTERFACE.
197 * vtysh.c: Use VTYSH_INTERFACE where possible. Added some related TODO
198 items.
199 * vtysh.c: Move things around a little to reduce spaghetti mess.
200 * Makefile.am: Parse only needed files from zebra daemon while
201 building vtysh_cmd.c file to supress warnings.
202
gdtfc9d0742004-06-30 14:25:12 +00002032004-06-30 Greg Troxel <gdt@poblano.ir.bbn.com>
204
205 * extract.pl.in: Rename from extract.pl, with @PERL@.
206
207 * Makefile.am: Add vtysh_cmds.c to CLEANFILES.
208
hasso6c0f9a72004-06-20 09:30:57 +00002092004-06-20 Hasso Tepper <hasso@estpak.ee>
210
211 * extract.pl: Zebra daemon has access lists as well.
212
hasso2a56df92004-05-09 23:16:40 +00002132004-05-10 Hasso Tepper <hasso@estpak.ee>
214
215 * vtysh.c: Workaround for most hated vtysh bug - Bugzilla #58.
216
hasso4991f6c2004-04-06 11:36:17 +00002172004-04-06 Hasso Tepper <hasso@estpak.ee>
218
219 * vtysh_main.c: Don't save command to history if last command already
220 there is same.
221 * vtysh_main.c: Replace -e with -c.
222 * vtysh_main.c: Fix help.
223
hassofa2b17e2004-03-04 17:45:00 +00002242004-03-04 Hasso Tepper <hasso@estpak.ee>
225
226 * vtysh.c: Remove using PAGER.
227
paul13b8baa2004-01-15 01:00:49 +00002282004-01-15 Paul Jakma <paul@dishone.st>
229
230 * vtysh_config.c: Fix up strlen to use correct string.
231
hassoba6dffe2003-12-23 10:43:09 +00002322003-12-23 Hasso Tepper <hasso@estpak.ee>
233
234 * Makefile.am extract.pl vtysh.c vtysh.h vtysh_config.c:
235 isisd integration to vtysh.
236
paul445f1432003-05-16 19:00:31 +00002372003-05-01 Sergiy Vyshnevetskiy <serg@vostok.net>
238
239 vtysh.c: Program shouldn't terminate on pager execution failure
240 vtysh_user.c: configure support for openpam (freebsd5.0)
241
2422003-04-19 Hasso Tepper <hasso@estpak.ee>
243
244 * extract.pl vtysh.c vtysh.h: sync daemon's route-map commands to
245 have same syntax
246
paul4fc01e62002-12-13 20:49:00 +00002472002-09-30 Paul Jakma <paulzebra@rs250.org>
248
249 * vtysh.c: add 'write-config (integrated|daemon)' option
250 to specifiy whether write config commands should write
251 integrated Zebra.conf file and/or per daemon files.
252 Defaults to per daemon, unless this is turned off.
253
paul718e3742002-12-13 20:15:29 +00002542002-07-07 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
255
256 * zebra-0.93 released.
257
2582001-08-19 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
259
260 * zebra-0.92a released.
261
2622001-08-15 Kunihiro Ishiguro <kunihiro@ipinfusion.com>
263
264 * zebra-0.92 released.
265
2662001-02-20 Kunihiro Ishiguro <kunihiro@zebra.org>
267
268 * vtysh.c (vtysh_client_config): Do not set bufsz to 120.
269 Suggested by: Matthew Grant <grantma@anathoth.gen.nz>.
270
2712001-02-15 Hideto Yamakawa <yamakawa@dml.com>
272
273 * vtysh.c (vtysh_client_execute): Call fflush after fprintf.
274
275 * vtysh_config.c (vtysh_config_dump): Use VTYSH_PAGER if defined.
276
2772001-02-14 Kunihiro Ishiguro <kunihiro@zebra.org>
278
279 * vtysh.c (vtysh_execute_func): Add fflush before pclose.
280
2812001-02-10 Kunihiro Ishiguro <kunihiro@zebra.org>
282
283 * vtysh.c: VTY shell pager name. When environment variable
284 VTYSH_PAGER is defined, use it as VTY shell pager.
285
2862001-02-09 Kunihiro Ishiguro <kunihiro@zebra.org>
287
288 * vtysh.c (vtysh_execute_func): Add pager argument for test of
289 pager invocation.
290
2912001-02-08 Kunihiro Ishiguro <kunihiro@zebra.org>
292
293 * extract.pl: Add -DHAVE_CONFIG_H option to cpp.
294
2952001-02-08 Matthew Grant <grantma@anathoth.gen.nz>
296
297 * vtysh.c (vtysh_client_config): Use sysconf to determine output
298 buffer size.
299 (vtysh_write_memory): Set umask 0077.
300 (vtysh_connect): Check permission to the socket.
301
3022001-02-01 Kunihiro Ishiguro <kunihiro@zebra.org>
303
304 * zebra-0.91 is released.
305
3062001-01-31 Michael Rozhavsky <mrozhavsky@opticalaccess.com>
307
308 * vtysh.c (new_completion): Fix problem of appending space when
309 completion is executed.
310
3112001-01-23 Akihiro Mizutani <mizutani@dml.com>
312
313 * vtysh.c (vtysh_write_terminal): "write terminal" to all node.
314
3152001-01-15 Kunihiro Ishiguro <kunihiro@zebra.org>
316
317 * vtysh.c (vtysh_execute): Fix unconditional lock by other VTY.
318 Suggested by Hideto Yamakawa <yamakawa@dml.com>.
319
3202001-01-09 Kunihiro Ishiguro <kunihiro@zebra.org>
321
322 * zebra-0.90 is released.
323
3242001-01-07 Kunihiro Ishiguro <kunihiro@zebra.org>
325
326 * vtysh.h (ZEBRA_PATH): Fix new vtysh path. Reported by "Matt
327 Ranney" <mjr@ranney.com>
328
3292000-11-06 Kunihiro Ishiguro <kunihiro@zebra.org>
330
331 * vtysh.c (DEFUNSH): Add "address-family vpnv4" DEFUNSH.
332
3332000-10-23 Kunihiro Ishiguro <kunihiro@zebra.org>
334
335 * vtysh.c (execute_command): Add two arguemnt support for
336 executing child process.
337 (vtysh_telnet_port): New command "telnet WORD PORT" is added.
338
3392000-10-23 Akihiro Mizutani <mizutani@dml.com>
340
341 * vtysh.c (vtysh_write_memory): Display [OK] when configuration is
342 saved without problem.
343
3442000-10-20 Kunihiro Ishiguro <kunihiro@zebra.org>
345
346 * vtysh.c (vtysh_config_from_file): "key chain" command with -b
347 flag problem is fixed.
348
3492000-10-17 Kunihiro Ishiguro <kunihiro@zebra.org>
350
351 * vtysh_user.c: Change to use linklist.c.
352
3532000-10-02 Kunihiro Ishiguro <kunihiro@zebra.org>
354
355 * Makefile.am (noinst_HEADERS): Add vtysh_user.h.
356
357 * zebra-0.89 is released.
358
3592000-09-22 Kunihiro Ishiguro <kunihiro@zebra.org>
360
361 * vtysh_main.c: Declare thread master.
362
3632000-08-25 Kunihiro Ishiguro <kunihiro@zebra.org>
364
365 * vtysh_main.c (main): Add missing --help procudure. Reported by
366 Patrick Rother <krd@roka.net>.
367
3682000-08-22 Kunihiro Ishiguro <kunihiro@zebra.org>
369
370 * vtysh.c (DEFUNSH): "interface IFNAME" works.
371
3722000-08-20 Kunihiro Ishiguro <kunihiro@zebra.org>
373
374 * vtysh_user.c: Change name from vtysh_pam.c.
375
376 * vtysh.conf.sample: New file for vtysh configuration.
377
3782000-08-19 Kunihiro Ishiguro <kunihiro@zebra.org>
379
380 * vtysh_pam.c (vtysh_pam): New file for PAM.
381
3822000-08-17 Kunihiro Ishiguro <kunihiro@zebra.org>
383
384 * zebra-0.88 is released.
385
3862000-08-02 Kunihiro Ishiguro <kunihiro@zebra.org>
387
388 * Makefile.am (vtysh_LDADD): Remove -lreadline and -lncurses.
389
390 * vtysh.c (vtysh_connect): Use AF_UNIX instead of AF_LOCAL for
391 backward compatibility.
392
3932000-07-09 Kunihiro Ishiguro <kunihiro@zebra.org>
394
395 * extract.pl: Change regexp to match DEFUN and ALIAS at the same
396 time.
397
3982000-07-05 Kunihiro Ishiguro <kunihiro@zebra.org>
399
400 * vtysh.c (signal_init): Ignore SIGPIPE signal.
401
4022000-07-04 Kunihiro Ishiguro <kunihiro@zebra.org>
403
404 * extract.pl: ALIAS command can be extracted by extract.pl.
405
4062000-07-03 Kunihiro Ishiguro <kunihiro@zebra.org>
407
408 * extract.pl: Fix scalar and array semantics.
409
410 * vtysh.c (vtysh_telnet): Add "telnet" client command.
411
4122000-07-02 Kunihiro Ishiguro <kunihiro@zebra.org>
413
414 * vtysh.c (main): Add -e flag for passing command from arugment.
415 (vtysh_ping): Add "ping" command for test of command execution.
416 (init_node): Add "traceroute" command.
417 (vtysh_start_shell): Add "start-shell", "start-shell bash",
418 "start-shell zsh".
419 (sigint): Add check for execute_flag for avoid duplicate prompt.
420
4212000-06-28 Kunihiro Ishiguro <kunihiro@zebra.org>
422
423 * vtysh.c: New file for vty shell.
424 * vtysh.h: Likewise.
425 * extract.pl: Likewise.
426 * vtysh_cmd.c: Generate by extract.pl.