コード例 #1
0
ファイル: vmware.py プロジェクト: online-stuff/va_master
    def get_steps(self):
        """ Works like the Base get_steps, but adds the provider_ip and provider_protocol fields. Also, there are no security groups in LibVirt, so that field is removed. """
        steps = yield super(VMWareDriver, self).get_steps()
        steps[0].add_fields([
            ('provider_ip', 'Provider ip', 'str'),
            ('port', 'Port', 'str'),
            ('protocol', 'Protocol', 'str'),
        ])

        datacenter = Step('Datacenter')
        datacenter.add_fields([
            ('datacenter', 'Choose a datacenter from the list', 'options'),
        ])

        network = Step('Network')
        network.add_fields([
            ('network', 'Choose a network', 'options'),
        ])

        steps = [steps[0], datacenter, network, steps[-1]]
        raise tornado.gen.Return(steps)
コード例 #2
0
 def restore(self, state):
     assert os.path.abspath(state.sync_tree.root) in sys.path
     Step.restore(self, state)
コード例 #3
0
ファイル: sync.py プロジェクト: AlanWasTaken/servo
 def restore(self, state):
     assert os.path.abspath(state.sync_tree.root) in sys.path
     Step.restore(self, state)