Skip to content

Commit

Permalink
support tlc S0098
Browse files Browse the repository at this point in the history
  • Loading branch information
emiltin committed Dec 13, 2024
1 parent edfe55b commit 22bed97
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion lib/rsmp/tlc/traffic_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ def get_status code, name=nil, options={}
'S0015', 'S0016', 'S0017', 'S0018', 'S0019', 'S0020', 'S0021',
'S0022', 'S0023', 'S0024', 'S0026', 'S0027', 'S0028',
'S0029', 'S0030', 'S0031', 'S0032', 'S0033', 'S0035',
'S0091', 'S0092', 'S0095', 'S0096', 'S0097',
'S0091', 'S0092', 'S0095', 'S0096', 'S0097', 'S0098',
'S0205', 'S0206', 'S0207', 'S0208'
return send("handle_#{code.downcase}", code, name, options)
else
Expand Down Expand Up @@ -1008,6 +1008,20 @@ def handle_s0097 status_code, status_name=nil, options={}
end
end

def handle_s0098 status_code, status_name=nil, options={}
settings = node.site_settings.slice('components','signal_plans','inputs','startup_sequence')
json = JSON.generate(settings)
case status_name
when 'config'
TrafficControllerSite.make_status json
when 'timestamp'
now = clock.to_s
TrafficControllerSite.make_status now
when 'version'
TrafficControllerSite.make_status Digest::MD5.hexdigest(json)
end
end

def handle_s0205 status_code, status_name=nil, options={}
case status_name
when 'start'
Expand Down

0 comments on commit 22bed97

Please sign in to comment.