diff options
author | hasso <hasso> | 2003-05-25 11:51:29 +0000 |
---|---|---|
committer | hasso <hasso> | 2003-05-25 11:51:29 +0000 |
commit | aa8061bfd3b3f546403f8c94c5e7a30496d723ee (patch) | |
tree | 0bfc462fd55a8cc17d701753e8ed1d0961fcc3f7 /vtysh | |
parent | bf1ac7e300f2b6fc547f1f701077ac5e7fb36adf (diff) | |
download | quagga-aa8061bfd3b3f546403f8c94c5e7a30496d723ee.tar.bz2 quagga-aa8061bfd3b3f546403f8c94c5e7a30496d723ee.tar.xz |
Just "write" command without any parameters writes conf to file.
Diffstat (limited to 'vtysh')
-rw-r--r-- | vtysh/vtysh.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c index 6b658267..6000f817 100644 --- a/vtysh/vtysh.c +++ b/vtysh/vtysh.c @@ -1382,6 +1382,11 @@ ALIAS (vtysh_write_memory, "Write running configuration to memory, network, or terminal\n" "Write configuration to the file (same as write memory)\n") +ALIAS (vtysh_write_memory, + vtysh_write_cmd, + "write", + "Write running configuration to memory, network, or terminal\n") + ALIAS (vtysh_write_terminal, vtysh_show_running_config_cmd, "show running-config", @@ -1849,6 +1854,7 @@ vtysh_init_vty () install_element (ENABLE_NODE, &vtysh_show_running_config_cmd); install_element (ENABLE_NODE, &vtysh_copy_runningconfig_startupconfig_cmd); install_element (ENABLE_NODE, &vtysh_write_file_cmd); + install_element (ENABLE_NODE, &vtysh_write_cmd); /* write terminal command */ install_element (ENABLE_NODE, &vtysh_write_terminal_cmd); |