#extends cobbler.webui.master #block body ### ### here's a list of all the NIC fields we use ### ### FIXME: add gateway, subnet, and any other missing fields #set $fields = [ "macaddress", "ipaddress", "hostname", "dhcptag", "virtbridge", "subnet", "gateway"] ## ## determine a bit about what interfaces should be shown and which should not. ## #set $all_interfaces = [ "intf0", "intf1", "intf2", "intf3", "intf4", "intf5", "intf6", "intf7" ] #if $system #set $interfaces = $system.interfaces.keys() #set $defined_interfaces = [] #for $potential in $all_interfaces #if $potential in $interfaces #set $rc = $defined_interfaces.append($potential) #end if #end for #else #set $interfaces = [ "intf0", "intf1", "intf2", "intf3", "intf4", "intf5", "intf6", "intf7" ] #set $defined_interfaces = [ "intf0" ] #end if ### ### now generate the onload function. ### #if $editable != True #set global $owners = $system.owners #include "/usr/share/cobbler/webui_templates/enoaccess.tmpl" #end if
#if $system #else #end if Edit a System ## FIXME: this ID doesn't make sense but it's there for the javascript #if $system #else #end if ## ====================================== start of looping through interfaces #set $counter = -1 #for $interface in $all_interfaces #set $counter = $counter+1 ## ---------------------------------- ## load up initial variable values ## ---------------------------------- #if $system and $interface in $defined_interfaces #set $macaddress = $system.interfaces[$interface]["mac_address"] #set $ipaddress = $system.interfaces[$interface]["ip_address"] #set $hostname = $system.interfaces[$interface]["hostname"] #set $dhcptag = $system.interfaces[$interface]["dhcp_tag"] #set $virtbridge = $system.interfaces[$interface]["virt_bridge"] #set $subnet = $system.interfaces[$interface]["subnet"] #set $gateway = $system.interfaces[$interface]["gateway"] #else #set $macaddress = "" #set $ipaddress = "" #set $hostname = "" #set $dhcptag = "" #set $virtbridge = "" #set $subnet = "" #set $gateway = "" #end if ## ---------------------------------------- ## render the toggle link to hide the interfaces not yet defined ## ---------------------------------------- ## ## ## ## ---------------------------------------- ## now show all of the interface fields which may or may not ## be hidden but are always there ## ---------------------------------------- #if $interface != "intf0" #end if ## FIXME: make the save function understand the new fieldname-$interface variables ## only enable an interface for saving if one of it's fields is non-empty ## FIXME: delete checkboxes and accompanying API method. No delete for intf0. #end for ## ====================================== end of looping through interfaces #if $system and $editable == True #end if #if $editable == True #end if
#if $system

Example: vanhalen

Edit Rename + Edit Copy + Edit

How do you want to modify this object?

What profile should be installed on this system?

Example: noipv6 magic=foo

Example: dog=fido gnome=yes

Deselect to keep this system from PXE booting

Use this server for kickstarts, not the value in settings. Usually this should be left alone.

#if $system #set ownerslist = ','.join($system.owners) #end if

Applies only if using authz_ownership module, comma-delimited

For virtual installs only, require this disk size in GB.

For virtual installs only, allocate this amount of RAM, in MB.

#if $system and $system.virt_type == "<>" Inherit #else #if $system Inherit #else Inherit #end if #end if #if $system and $system.virt_type == "auto" Any #else #if $system Any #else Any #end if #end if #if $system and $system.virt_type == "xenpv" Xen (pv) #else Xen (pv) #end if #if $system and $system.virt_type == "qemu" qemu/KVM #else qemu/KVM #end if

What virtualization technology should koan use?

Sets koan's storage preferences, read manpage or leave blank.

How many virtual CPUs? This is an integer.



Red Hat Enterprise Linux (v. 5 for 32-bit x86)
Interface $interface.replace("intf","")
#if not $system Random MAC #end if

Example: AA:BB:CC:DD:EE:FF

Example: 192.168.10.15

Example: vanhalen.example.org

Selects alternative subnets, see manpage or leave blank

Example: 'xenbr0' or 'virbr0'. Can be blank if set in profile or settings.

Ex: "255.255.255.0". For use in kickstart templates for static IPs.

Ex: "192.168.1.11". For use in kickstart templates for static IPs.

#if $editable == True #else #end if #if $editable == True

Clicking this button removes the interface from the configuration.

#else #end if


Yes Really

Check both buttons and click save to delete this object

#end block body