From: Faiyaz Ahmed Date: Mon, 16 Mar 2009 22:08:08 +0000 (+0000) Subject: Support GetLinkSpecs X-Git-Tag: sfa-0.9-0@14641~570 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;ds=sidebyside;h=13f21256ad2bb27c6e5b6da10c2257e54b45e433;p=sfa.git Support GetLinkSpecs --- diff --git a/geni/util/specdict.py b/geni/util/specdict.py index 2036977b..8f0b5971 100644 --- a/geni/util/specdict.py +++ b/geni/util/specdict.py @@ -69,16 +69,24 @@ class IfSpecDict(SpecDict): 'type': 'type'} class LinkSpecDict(SpecDict): - type = 'IfSpec' - fields = {'name': '', - 'addr': '', - 'type': '', + type = 'LinkSpec' + fields = {'min_alloc': '', + 'max_alloc': '', + 'type': '', + 'start_time': '', + 'bw': '', + 'duration': '', 'init_params': '', - 'min_rate': '', - 'max_rate': '', - 'max_kbyte': ''} - plc_fields = {} - + 'endpoints': [IfSpecDict]} + plc_fields = {'min_alloc': 'min_alloc', + 'max_alloc': 'max_alloc', + 'type': 'type', + 'start_time': 'start_time', + 'bw': 'bw', + 'duration': 'duration', + 'init_params': 'init_params', + 'endpoints': 'endpoints'} + class NodeSpecDict(SpecDict): type = 'NodeSpec'