diff --git a/Gemfile.lock b/Gemfile.lock index 1b4b472..ae70653 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - rsmp (0.33.4) + rsmp (0.34.0) async (~> 2.16) async-io (~> 1.43) colorize (~> 1.1) diff --git a/lib/rsmp/tlc/traffic_controller.rb b/lib/rsmp/tlc/traffic_controller.rb index c028553..841d68c 100644 --- a/lib/rsmp/tlc/traffic_controller.rb +++ b/lib/rsmp/tlc/traffic_controller.rb @@ -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 @@ -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' diff --git a/lib/rsmp/version.rb b/lib/rsmp/version.rb index ce9680b..3f0b25a 100644 --- a/lib/rsmp/version.rb +++ b/lib/rsmp/version.rb @@ -1,3 +1,3 @@ module RSMP - VERSION = "0.33.4" + VERSION = "0.34.0" end