summaryrefslogtreecommitdiffstats
path: root/cobbler/webui/CobblerWeb.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-11-20 12:30:45 -0500
committerMichael DeHaan <mdehaan@redhat.com>2008-11-20 12:30:45 -0500
commit43d30e64964dd0547c040225d487054faa0b227f (patch)
tree4e052afc9187e6e6dbcf344649a04896304ffe3a /cobbler/webui/CobblerWeb.py
parent643dcc228a68d147957e88433d08196cdbc0bdf6 (diff)
downloadcobbler-43d30e64964dd0547c040225d487054faa0b227f.tar.gz
cobbler-43d30e64964dd0547c040225d487054faa0b227f.tar.xz
cobbler-43d30e64964dd0547c040225d487054faa0b227f.zip
Hostname -> dnsname, gateway is now a per-system field, not per-interface
Diffstat (limited to 'cobbler/webui/CobblerWeb.py')
-rw-r--r--cobbler/webui/CobblerWeb.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cobbler/webui/CobblerWeb.py b/cobbler/webui/CobblerWeb.py
index 02e61fe3..b4664b4d 100644
--- a/cobbler/webui/CobblerWeb.py
+++ b/cobbler/webui/CobblerWeb.py
@@ -413,6 +413,8 @@ class CobblerWeb(object):
self.remote.modify_system(system, 'power_address', power_address, self.token)
if name_servers:
self.remote.modify_system(system, 'name_servers', name_servers, self.token)
+ if gateway:
+ self.remote.modify_systems(system, 'gateway', gateway, self.token)
interfaces = args.get("interface_list","")
interfaces = interfaces.split(",")
@@ -425,7 +427,6 @@ class CobblerWeb(object):
virtbridge = args.get("virtbridge-%s" % interface, "")
dhcptag = args.get("dhcptag-%s" % interface, "")
subnet = args.get("subnet-%s" % interface, "")
- gateway = args.get("gateway-%s" % interface, "")
bonding = args.get("bonding-%s" % interface, "")
bondingopts = args.get("bondingopts-%s" % interface, "")
bondingmaster = args.get("bondingmaster-%s" % interface, "")
@@ -440,12 +441,11 @@ class CobblerWeb(object):
mods = {}
mods["macaddress-%s" % interface] = macaddress
mods["ipaddress-%s" % interface] = ipaddress
- mods["hostname-%s" % interface] = hostname
+ mods["dnsname-%s" % interface] = hostname
mods["static-%s" % interface] = static
mods["virtbridge-%s" % interface] = virtbridge
mods["dhcptag-%s" % interface] = dhcptag
mods["subnet-%s" % interface] = subnet
- mods["gateway-%s" % interface] = gateway
mods["present-%s" % interface] = present
mods["original-%s" % interface] = original
mods["bonding-%s" % interface] = bonding