ChangeLog 16 KB

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