Commit c9345dc6 authored by Antoine Millet's avatar Antoine Millet
Browse files

Added execute on host and hv clients

parent 9028dae5
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -7,5 +7,8 @@ class HostClient(Client):

    ROLE = 'host'

    def execute(self, command):
        return self.conn.call('execute_command', command)


Client.register_client_class(HostClient)
+3 −0
Original line number Diff line number Diff line
@@ -105,6 +105,9 @@ class HvClient(Client):
            self.unregister(child)
        super(HvClient, self).shutdown()

    def execute(self, command):
        return self.conn.call('execute_command', command)

    def get_child_remote_tags(self, obj_id, tag):
        return self.conn.call('sub_tags', obj_id, (tag,))[tag]