diff options
Diffstat (limited to 'cobbler/modules/cli_system.py')
-rw-r--r-- | cobbler/modules/cli_system.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/cobbler/modules/cli_system.py b/cobbler/modules/cli_system.py index 65c0625..1e39669 100644 --- a/cobbler/modules/cli_system.py +++ b/cobbler/modules/cli_system.py @@ -27,17 +27,17 @@ import cexceptions class SystemFunction(commands.CobblerFunction): def help_me(self): - return commands.HELP_FORMAT % ("cobbler system","<add|edit|copy|rename|delete> [ARGS|--help]") + return commands.HELP_FORMAT % ("cobbler system","<add|edit|copy|rename|remove> [ARGS|--help]") def command_name(self): return "system" def subcommands(self): - return [ "add", "edit", "copy", "rename", "delete" ] + return [ "add", "edit", "copy", "rename", "remove" ] def add_options(self, p, args): - if not "delete" in args: + if not "remove" in args: p.add_option("--dhcp-tag", dest="dhcp_tag", help="for use in advanced DHCP configurations") p.add_option("--gateway", dest="gateway", help="for static IP / templating usage") p.add_option("--hostname", dest="hostname", help="ex: server.example.org") @@ -47,15 +47,16 @@ class SystemFunction(commands.CobblerFunction): p.add_option("--ksmeta", dest="ksmeta", help="ex: 'blippy=7'") p.add_option("--mac", dest="mac", help="ex: 'AA:BB:CC:DD:EE:FF', (RECOMMENDED)") p.add_option("--name", dest="name", help="a name for the system (REQUIRED)") - if not "delete" in args: + if not "remove" in args: p.add_option("--netboot-enabled", dest="netboot_enabled", help="PXE on (1) or off (0)") if "copy" in args or "rename" in args: p.add_option("--newname", dest="newname", help="for use with copy/edit") - if not "delete" in args: + if not "remove" in args: p.add_option("--profile", dest="profile", help="name of cobbler profile (REQUIRED)") p.add_option("--server-override", dest="server_override", help="overrides server value in settings file") p.add_option("--subnet", dest="subnet", help="for static IP / templating usage") p.add_option("--virt-bridge", dest="virt_bridge", help="ex: virbr0") + p.add_option("--virt-path", dest="virt_path", help="path, partition, or volume") p.add_option("--virt-type", dest="virt_type", help="ex: xenpv, qemu") @@ -81,7 +82,7 @@ class SystemFunction(commands.CobblerFunction): if self.options.gateway: obj.set_gateway(self.options.gateway, my_interface) if self.options.dhcp_tag: obj.set_dhcp_tag(self.options.dhcp_tag, my_interface) - return self.object_manipulator_finish(obj, self.api.profiles) + return self.object_manipulator_finish(obj, self.api.systems) |