#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. ###
#end block body