added sdvm_started handler
authormb
Mon, 09 Dec 2013 11:17:31 +0100
changeset 279732d799391f
parent 26 0b784719a211
child 28 a4c4b0f64b3f
added sdvm_started handler
OpenSecurity/bin/opensecurityd.py
     1.1 --- a/OpenSecurity/bin/opensecurityd.py	Fri Dec 06 14:32:35 2013 +0100
     1.2 +++ b/OpenSecurity/bin/opensecurityd.py	Mon Dec 09 11:17:31 2013 +0100
     1.3 @@ -53,6 +53,7 @@
     1.4  """All the URLs we know mapping to class handler"""
     1.5  opensecurity_urls = (
     1.6      '/device_change',           'os_device_change',     # http://localhost:8080/device_change   GET
     1.7 +    '/sdvm_started',            'os_sdvm_started',      # http://localhost:8080/sdvm_started    GET
     1.8      '/sdvms',                   'os_sdvms',             # http://localhost:8080/sdvms           GET, PUT
     1.9      '/sdvms/(.*)',              'os_sdvm',              # http://localhost:8080/sdvms           GET, DELETE
    1.10      '/vms',                     'os_vms',               # http://localhost:8080/vms             GET
    1.11 @@ -79,6 +80,12 @@
    1.12          gvm_mgr.handleDeviceChange()
    1.13          return "os_device_change"
    1.14  
    1.15 +class os_sdvm_started:
    1.16 +    """OpenSecurity '/sdvm_started' handler"""
    1.17 +    
    1.18 +    def GET(self):
    1.19 +        # self.request get address
    1.20 +        return "os_sdvm_started"
    1.21  
    1.22  class os_sdvm:
    1.23      """OpenSecurity '/sdvms/[VM]' handler"""