[Javanetsim-cvs] javaNetSim/guiUI Terminal.java,1.6,1.7
Status: Beta
Brought to you by:
darkkey
From: QweR <qw...@us...> - 2007-10-23 20:14:55
|
Update of /cvsroot/javanetsim/javaNetSim/guiUI In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv14031/guiUI Modified Files: Terminal.java Log Message: ACLs in configs (ip acc, show acc, show run) works Index: Terminal.java =================================================================== RCS file: /cvsroot/javanetsim/javaNetSim/guiUI/Terminal.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Terminal.java 20 Oct 2007 22:54:40 -0000 1.6 --- Terminal.java 23 Oct 2007 20:14:48 -0000 1.7 *************** *** 60,65 **** private clear_terminal_CommandClass clear_terminal_Command = new clear_terminal_CommandClass(); ! private configure_replace_CommandClass configure_replace_Command = new configure_replace_CommandClass(); ! private configure_memory_CommandClass configure_memory_Command = new configure_memory_CommandClass(); private configure_terminal_CommandClass configure_terminal_Command = new configure_terminal_CommandClass(); private exit_CommandClass exit_Command = new exit_CommandClass(); --- 60,65 ---- private clear_terminal_CommandClass clear_terminal_Command = new clear_terminal_CommandClass(); ! // private configure_replace_CommandClass configure_replace_Command = new configure_replace_CommandClass(); ! // private configure_memory_CommandClass configure_memory_Command = new configure_memory_CommandClass(); private configure_terminal_CommandClass configure_terminal_Command = new configure_terminal_CommandClass(); private exit_CommandClass exit_Command = new exit_CommandClass(); *************** *** 85,90 **** cmdproc.add("clear terminal", clear_terminal_Command, "Clear screen"); cmdproc.addDescription("configure","Enter configuration mode"); ! cmdproc.add("configure replace", configure_replace_Command, "Replace configure from the terminal"); ! cmdproc.add("configure memory", configure_memory_Command, "Configure from memory"); cmdproc.add("configure terminal", configure_terminal_Command, "Configure from the terminal"); cmdproc.add("exit", exit_Command, "Exit from current mode"); --- 85,90 ---- cmdproc.add("clear terminal", clear_terminal_Command, "Clear screen"); cmdproc.addDescription("configure","Enter configuration mode"); ! // cmdproc.add("configure replace", configure_replace_Command, "Replace configure from the terminal"); ! // cmdproc.add("configure memory", configure_memory_Command, "Configure from memory"); cmdproc.add("configure terminal", configure_terminal_Command, "Configure from the terminal"); cmdproc.add("exit", exit_Command, "Exit from current mode"); *************** *** 326,352 **** } }; ! class configure_replace_CommandClass extends CommandInterface{ ! public configure_replace_CommandClass (){ ! modes = new Modes(CommandInterface.STD_MODE, CommandInterface.NETWORK_LAYER, CommandInterface.CALL_ONLY); ! call_params = "<cr>"; ! } ! public String call(Vector<String> params){ ! device.getConfig().working_config = DeviceConfig.RUNNING_CONFIG; ! current_mode.conf_mode = CommandInterface.CONF_MODE; ! device.getConfig().clear(DeviceConfig.RUNNING_CONFIG); ! return "Running-config was erased\nEnter configuration commands, one per line. End with 'exit'"; ! } ! }; ! class configure_memory_CommandClass extends CommandInterface{ ! public configure_memory_CommandClass (){ ! modes = new Modes(CommandInterface.STD_MODE, CommandInterface.NETWORK_LAYER, CommandInterface.CALL_ONLY); ! call_params = "<cr>"; ! } ! public String call(Vector<String> params){ ! device.getConfig().working_config = DeviceConfig.STARTUP_CONFIG; ! current_mode.conf_mode = CommandInterface.CONF_MODE; ! return "Starting-config editing\nEnter configuration commands, one per line. End with 'exit'"; ! } ! }; class exit_CommandClass extends CommandInterface{ public exit_CommandClass (){ --- 326,352 ---- } }; ! // class configure_replace_CommandClass extends CommandInterface{ ! // public configure_replace_CommandClass (){ ! // modes = new Modes(CommandInterface.STD_MODE, CommandInterface.NETWORK_LAYER, CommandInterface.CALL_ONLY); ! // call_params = "<cr>"; ! // } ! // public String call(Vector<String> params){ ! // device.getConfig().working_config = DeviceConfig.RUNNING_CONFIG; ! // current_mode.conf_mode = CommandInterface.CONF_MODE; ! // device.getConfig().clear(DeviceConfig.RUNNING_CONFIG); ! // return "Running-config was erased\nEnter configuration commands, one per line. End with 'exit'"; ! // } ! // }; ! // class configure_memory_CommandClass extends CommandInterface{ ! // public configure_memory_CommandClass (){ ! // modes = new Modes(CommandInterface.STD_MODE, CommandInterface.NETWORK_LAYER, CommandInterface.CALL_ONLY); ! // call_params = "<cr>"; ! // } ! // public String call(Vector<String> params){ ! // device.getConfig().working_config = DeviceConfig.STARTUP_CONFIG; ! // current_mode.conf_mode = CommandInterface.CONF_MODE; ! // return "Starting-config editing\nEnter configuration commands, one per line. End with 'exit'"; ! // } ! // }; class exit_CommandClass extends CommandInterface{ public exit_CommandClass (){ |