# HG changeset patch # User mb # Date 1386584251 -3600 # Node ID 9732d799391f6d834079999b0bf3eb344b841ec2 # Parent 0b784719a211690965fb4883d53576f8e6d258e4 added sdvm_started handler diff -r 0b784719a211 -r 9732d799391f OpenSecurity/bin/opensecurityd.py --- a/OpenSecurity/bin/opensecurityd.py Fri Dec 06 14:32:35 2013 +0100 +++ b/OpenSecurity/bin/opensecurityd.py Mon Dec 09 11:17:31 2013 +0100 @@ -53,6 +53,7 @@ """All the URLs we know mapping to class handler""" opensecurity_urls = ( '/device_change', 'os_device_change', # http://localhost:8080/device_change GET + '/sdvm_started', 'os_sdvm_started', # http://localhost:8080/sdvm_started GET '/sdvms', 'os_sdvms', # http://localhost:8080/sdvms GET, PUT '/sdvms/(.*)', 'os_sdvm', # http://localhost:8080/sdvms GET, DELETE '/vms', 'os_vms', # http://localhost:8080/vms GET @@ -79,6 +80,12 @@ gvm_mgr.handleDeviceChange() return "os_device_change" +class os_sdvm_started: + """OpenSecurity '/sdvm_started' handler""" + + def GET(self): + # self.request get address + return "os_sdvm_started" class os_sdvm: """OpenSecurity '/sdvms/[VM]' handler"""