#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 $system #else #end if Edit a System ## FIXME: this ID doesn't make sense but it's there for the javascript #if $system #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 ## ---------------------------------------- ## FIXME: add virt_bridge editing (like above) ## FIXME: add subnet editing (like above) ## FIXME: add gateway editing (like above) #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 #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.



Red Hat Enterprise Linux (v. 5 for 32-bit x86)
Interface $interface.replace("intf","")
## #if not $system ## random ## #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.

Clicking this button removes the interface from the configuration.



Yes Really

Check both buttons and click save to delete this object

#end block body