diff options
author | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-05-30 16:16:46 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-05-30 16:16:46 -0400 |
commit | b8c7846c557c6c0cf69003cf9475df36195e5065 (patch) | |
tree | c3b051bcf8c40944b37e997f531ea220e43e927e /cobbler/cobbler.py | |
parent | 9fb76485117054903d950256089c66f9e08f8bb5 (diff) | |
download | third_party-cobbler-b8c7846c557c6c0cf69003cf9475df36195e5065.tar.gz third_party-cobbler-b8c7846c557c6c0cf69003cf9475df36195e5065.tar.xz third_party-cobbler-b8c7846c557c6c0cf69003cf9475df36195e5065.zip |
WIP: Allow system names to be anything, and gather mac address and IP from
either the inferred sytem name or the values given to --ip-address (--ip)
or --mac-address (--mac). Change the action code to use this, and not
create PXE entries when such info is not available.
Diffstat (limited to 'cobbler/cobbler.py')
-rwxr-xr-x | cobbler/cobbler.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cobbler/cobbler.py b/cobbler/cobbler.py index fda1772..0daaf85 100755 --- a/cobbler/cobbler.py +++ b/cobbler/cobbler.py @@ -471,8 +471,11 @@ class BootCLI: '--kopts' : lambda(a) : sys.set_kernel_options(a), '--ksmeta' : lambda(a) : sys.set_ksmeta(a), '--hostname' : lambda(a) : sys.set_hostname(a), - '--pxe-address' : lambda(a) : sys.set_ip_address(a), - '--ip-address' : lambda(a) : sys.set_ip_address(a) + '--pxe-address' : lambda(a) : sys.set_ip_address(a), # deprecated + '--ip-address' : lambda(a) : sys.set_ip_address(a), + '--ip' : lambda(a) : sys.set_ip_address(a), # alias + '--mac-address' : lambda(a) : sys.set_mac_address(a), + '--mac' : lambda(a) : sys.set_mac_address(a) # alias } def on_ok(): self.api.systems().add(sys, with_copy=self.api.sync_flag) |