Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions aii-dhcp/src/main/pan/quattor/aii/dhcp/schema.pan
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ unique template quattor/aii/${project.artifactId}/schema;
# Information needed for creating the Kickstart file
type structure_dhcp_dhcp_info = {
"tftpserver" ? string
"filename" ? string
"options" ? string{}
};

Expand Down
4 changes: 4 additions & 0 deletions aii-dhcp/src/main/perl/dhcp.pm
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,10 @@ sub Configure
if ($opts->{tftpserver}) {
$tftpserver = $opts->{tftpserver};
}
if ($opts->{filename}) {
$additional .= "filename \"$opts->{filename}\";\n";
}

if ($opts->{options}) {
foreach my $k (sort keys %{$opts->{options}}) {
$additional .= "option $k $opts->{options}->{$k};\n";
Expand Down