Project

General

Profile

« Previous | Next » 

Revision b80c6c00

Added by Frank Wall over 10 years ago

fixes #3906 - Support for Junos ZTP

View differences:

app/controllers/unattended_controller.rb
def find_host_by_token
token = params.delete("token")
return nil if token.blank?
# Quirk: ZTP requires the .slax suffix
if ( result = token.match(/^([a-z0-9-]+)(.slax)$/i) )
token, suffix = result.captures
end
Host.for_token(token).first
end
......
@mediapath = os.mediumpath @host
end
def ZTP_attributes
os = @host.operatingsystem
@mediapath = os.mediumpath @host
end
def waik_attributes
end

Also available in: Unified diff