Merge branch 'master' of ssh://git.planet-lab.org/git/sfa
[sfa.git] / sfa / rspecs / elements / link.py
1 from sfa.rspecs.elements.interface import Interface
2
3 class Link(dict):
4     element = None 
5     fields = {
6         'client_id': None, 
7         'component_id': None,
8         'component_name': None,
9         'component_manager': None,
10         'type': None,
11         'interface1': None,
12         'interface2': None,
13         'capacity': None,
14         'latency': None,
15         'packet_loss': None,
16         'description': None,
17     }
18     
19     def __init__(self, fields={}, element=None):
20         self.element = element
21         dict.__init__(self, Link.fields)
22         self.update(fields)
23