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:
48fe041
)
added sliver_exists() method
author
Tony Mack
<tmack@cs.princeton.edu>
Fri, 20 Nov 2009 19:41:23 +0000
(19:41 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Fri, 20 Nov 2009 19:41:23 +0000
(19:41 +0000)
sfacomponent/plc/api.py
patch
|
blob
|
history
diff --git
a/sfacomponent/plc/api.py
b/sfacomponent/plc/api.py
index
51ba366
..
04122fa
100644
(file)
--- a/
sfacomponent/plc/api.py
+++ b/
sfacomponent/plc/api.py
@@
-39,3
+39,11
@@
class ComponentAPI(BaseAPI):
raise
return nodemanager
+
+ def sliver_exists(self):
+ sliver_dict = self.nodemanager.GetXIDs()
+ if slicename in sliver_dict.keys():
+ return True
+ else:
+ return False
+