summaryrefslogtreecommitdiffstats
path: root/webui_templates
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-11-20 15:10:14 -0500
committerMichael DeHaan <mdehaan@redhat.com>2008-11-20 15:10:14 -0500
commit6b8db9beafee0934efdb3c8f6ee6ccb7a52be734 (patch)
tree0d077e0a51abdcc02424d201e4887a2de9f2240d /webui_templates
parent8d8e84201a07a197ff035f405d24940775e86153 (diff)
downloadcobbler-6b8db9beafee0934efdb3c8f6ee6ccb7a52be734.tar.gz
cobbler-6b8db9beafee0934efdb3c8f6ee6ccb7a52be734.tar.xz
cobbler-6b8db9beafee0934efdb3c8f6ee6ccb7a52be734.zip
Changes to make IP address be non-static (as previously implemented) for purposes of allowing
DHCP reservations when using the manage_dhcp feature.
Diffstat (limited to 'webui_templates')
-rw-r--r--webui_templates/system_edit.tmpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/webui_templates/system_edit.tmpl b/webui_templates/system_edit.tmpl
index d79c9c04..812ea439 100644
--- a/webui_templates/system_edit.tmpl
+++ b/webui_templates/system_edit.tmpl
@@ -46,7 +46,8 @@ function intf_update_visibility()
{
is_slave=document.getElementById("bonding_is_slave").checked
is_master=document.getElementById("bonding_is_master").checked
-
+ is_static = document.getElementById("static_true").checked
+
intf_enable_field("static",!is_slave)
intf_enable_field("ipaddress",(!is_slave))
intf_enable_field("subnet",(!is_slave) && is_static)
@@ -112,7 +113,6 @@ function on_interface_add()
interfaces.selectedIndex = ilen
on_interface_change() // explicit firing required
-
}
function on_interface_delete()
@@ -181,7 +181,7 @@ function save_intf(which)
itable["bondingmaster"] = get_enabled_field("bondingmaster",is_slave)
itable["bondingopts"] = get_enabled_field("bondingopts",is_master)
itable["static"] = document.getElementById("static_true").checked
- itable["ipaddress"] = get_enabled_field("ipaddress",(!is_slave) && is_static)
+ itable["ipaddress"] = get_enabled_field("ipaddress",(!is_slave))
itable["subnet"] = get_enabled_field("subnet",(!is_slave) && is_static)
itable["dns_name"] = get_enabled_field("dns_name",!is_slave)
itable["static_routes"] = get_enabled_field("static_routes",!is_slave)