ThreadedServer and SfaServer in separate files
[sfa.git] / sfa / rspecs / elements / link.py
1 from sfa.rspecs.elements.interface import Interface
2
3 class Link(dict):
4     
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         '_element': None
18     }
19     
20     def __init__(self, fields={}):
21         dict.__init__(self, Link.fields)
22         self.update(fields)
23