diff options
| author | Jerome Martin <jxm@risingtidesystems.com> | 2011-07-18 23:54:37 +0200 |
|---|---|---|
| committer | Jerome Martin <jxm@risingtidesystems.com> | 2011-07-19 00:09:17 +0200 |
| commit | 0876739948b9300bfd32c88fa0ff661537c7be59 (patch) | |
| tree | cf88e9b622818b807915fe25002427cc2416f402 /rtsadmin/ui_node.py | |
| parent | 1b06ee3754d3db376a5fb7fac45d2deabe1ca465 (diff) | |
| download | targetcli-0876739948b9300bfd32c88fa0ff661537c7be59.tar.gz | |
Moved saveconfig to /, added hostname reminder.
* Reminder is useful for remote access.
* Moving to root node makes it clear that the whole config is saved,
not just the current node or subtree.
* Removes command clutter from nodes.
Diffstat (limited to 'rtsadmin/ui_node.py')
| -rw-r--r-- | rtsadmin/ui_node.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/rtsadmin/ui_node.py b/rtsadmin/ui_node.py index f8640e5..5086952 100644 --- a/rtsadmin/ui_node.py +++ b/rtsadmin/ui_node.py @@ -17,7 +17,6 @@ You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. ''' -from os import system from configshell import ConfigNode, ExecutionError from rtslib import RTSLibError, RTSRoot @@ -97,18 +96,6 @@ class UINode(ConfigNode): ''' self.refresh() - def ui_command_saveconfig(self): - ''' - Saves the whole configuration tree to disk so that it will be restored - on next boot. Unless you do that, changes are lost accross reboots. - ''' - self.assert_root() - self.shell.con.display("WARNING: Saving current configuration to " - + "disk will overwrite your boot settings.") - self.shell.con.display("The current target configuration will become " - + "the default boot config.") - system('PYTHONPATH="" python /usr/sbin/tcm_dump --o') - def ui_command_status(self): ''' Displays the current node's status summary. |
