Without specifying the filename this will use
*/etc/nvmet/config.json*.
| clear | Clears a current NVMe Target configuration.
+| ls | Dumps the current NVMe Target configuration.
|==================
EXAMPLES
print("syntax: %s save [file_to_save_to]" % sys.argv[0])
print(" %s restore [file_to_restore_from]" % sys.argv[0])
print(" %s clear" % sys.argv[0])
+ print(" %s ls" % sys.argv[0])
sys.exit(-1)
nvme.Root().clear_existing()
-funcs = dict(save=save, restore=restore, clear=clear)
+def ls(unused):
+ shell = configshell.shell.ConfigShell('~/.nvmetcli')
+ UIRootNode(shell)
+ shell.run_cmdline("ls")
+ sys.exit(0)
+
+
+funcs = dict(save=save, restore=restore, clear=clear, ls=ls)
def main():