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)
def restore(self, state): assert os.path.abspath(state.sync_tree.root) in sys.path Step.restore(self, state)