git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
1d53363
)
Support GetLinkSpecs
author
Faiyaz Ahmed
<faiyaza@cs.princeton.edu>
Mon, 16 Mar 2009 22:08:08 +0000
(22:08 +0000)
committer
Faiyaz Ahmed
<faiyaza@cs.princeton.edu>
Mon, 16 Mar 2009 22:08:08 +0000
(22:08 +0000)
geni/util/specdict.py
patch
|
blob
|
history
diff --git
a/geni/util/specdict.py
b/geni/util/specdict.py
index
2036977
..
8f0b597
100644
(file)
--- a/
geni/util/specdict.py
+++ b/
geni/util/specdict.py
@@
-69,16
+69,24
@@
class IfSpecDict(SpecDict):
'type': 'type'}
class LinkSpecDict(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': '',
'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'
class NodeSpecDict(SpecDict):
type = 'NodeSpec'