1537cdaf6a7091d844df068506b2d4881fa87408
[nepi.git] / src / nepi / core / testbed.py
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3 from nepi.core.attributes import AttributesMap
4
5 class TestbedConfiguration(AttributesMap):
6     pass
7
8 class TestbedInstance(object):
9     def __init__(self, configuration):
10         pass
11
12     def create(self, guid, factory_id):
13         """Instructs creation of element """
14         raise NotImplementedError
15
16     def create_set(self, guid, name, value):
17         """Instructs setting an attribute on an element"""
18         raise NotImplementedError
19
20     def do_create(self):
21         """After do_create all instructed elements are created and 
22         attributes setted"""
23         raise NotImplementedError
24
25     def connect(self, guid1, connector_type_name1, guid2, 
26             connector_type_name2): 
27         raise NotImplementedError
28
29     def do_connect(self):
30         raise NotImplementedError
31
32     def add_trace(self, guid, trace_id):
33         raise NotImplementedError
34
35     def add_adddress(self, guid, family, address, netprefix, broadcast): 
36         raise NotImplementedError
37
38     def add_route(self, guid, family, destination, netprefix, nexthop, 
39             interface):
40         raise NotImplementedError
41
42     def do_configure(self):
43         raise NotImplementedError
44
45     def do_cross_connect(self):
46         raise NotImplementedError
47
48     def set(self, time, guid, name, value):
49         raise NotImplementedError
50
51     def get(self, time, guid, name):
52         raise NotImplementedError
53
54     def start(self, time):
55         raise NotImplementedError
56
57     def action(self, time, guid, action):
58         raise NotImplementedError
59
60     def stop(self, time):
61         raise NotImplementedError
62
63     def status(self, guid):
64         raise NotImplementedError
65
66     def trace(self, guid, trace_id):
67         raise NotImplementedError
68
69     def shutdown(self):
70         raise NotImplementedError
71