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 (parent:
2913d62
)
Only allow slice tags of type slice/rspec
author
Andy Bavier
<acb@cs.princeton.edu>
Fri, 5 Feb 2010 19:54:54 +0000
(19:54 +0000)
committer
Andy Bavier
<acb@cs.princeton.edu>
Fri, 5 Feb 2010 19:54:54 +0000
(19:54 +0000)
sfa/plc/network.py
patch
|
blob
|
history
diff --git
a/sfa/plc/network.py
b/sfa/plc/network.py
index
498a0a7
..
95344bf
100644
(file)
--- a/
sfa/plc/network.py
+++ b/
sfa/plc/network.py
@@
-238,7
+238,7
@@
class TagType:
def __init__(self, tagtype):
self.id = tagtype['tag_type_id']
self.tagname = tagtype['tagname']
def __init__(self, tagtype):
self.id = tagtype['tag_type_id']
self.tagname = tagtype['tagname']
- if self.tagname in ['codemux', 'vsys']:
+ if self.tagname in ['codemux', '
ip_addresses', '
vsys']:
self.multi = True
else:
self.multi = False
self.multi = True
else:
self.multi = False
@@
-490,8
+490,9
@@
class Network:
def get_tag_types(self, api):
tmp = []
for tag in api.plshell.GetTagTypes(api.plauth):
def get_tag_types(self, api):
tmp = []
for tag in api.plshell.GetTagTypes(api.plauth):
- t = tag['tagname'], TagType(tag)
- tmp.append(t)
+ if tag['category'] == 'slice/rspec':
+ t = tag['tagname'], TagType(tag)
+ tmp.append(t)
return dict(tmp)
"""
return dict(tmp)
"""