2 # -*- coding: utf-8 -*-
3 from nepi.core.attributes import AttributesMap
5 class TestbedConfiguration(AttributesMap):
8 class TestbedInstance(object):
9 def __init__(self, configuration):
12 def create(self, guid, factory_id):
13 """Instructs creation of element """
14 raise NotImplementedError
16 def create_set(self, guid, name, value):
17 """Instructs setting an attribute on an element"""
18 raise NotImplementedError
21 """After do_create all instructed elements are created and
23 raise NotImplementedError
25 def connect(self, guid1, connector_type_name1, guid2,
26 connector_type_name2):
27 raise NotImplementedError
30 raise NotImplementedError
32 def add_trace(self, guid, trace_id):
33 raise NotImplementedError
35 def add_adddress(self, guid, family, address, netprefix, broadcast):
36 raise NotImplementedError
38 def add_route(self, guid, family, destination, netprefix, nexthop,
40 raise NotImplementedError
42 def do_configure(self):
43 raise NotImplementedError
45 def do_cross_connect(self):
46 raise NotImplementedError
48 def set(self, time, guid, name, value):
49 raise NotImplementedError
51 def get(self, time, guid, name):
52 raise NotImplementedError
54 def start(self, time):
55 raise NotImplementedError
57 def action(self, time, guid, action):
58 raise NotImplementedError
61 raise NotImplementedError
63 def status(self, guid):
64 raise NotImplementedError
66 def trace(self, guid, trace_id):
67 raise NotImplementedError
70 raise NotImplementedError