summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
4d17883)
On PLE, this brings the call to 3 seconds from 45 seconds.
class Slicetag:
newid = -1
class Slicetag:
newid = -1
+ filter_fields = ['slice_tag_id','slice_id','tagname','value','node_id','category','min_role_id']
+ ignore_tags = ['hmac','ssh_key']
+
def __init__(self, tag = None):
if not tag:
return
def __init__(self, tag = None):
if not tag:
return
Create a dictionary of slicetag objects keyed by slice tag ID
"""
tmp = []
Create a dictionary of slicetag objects keyed by slice tag ID
"""
tmp = []
- for tag in api.plshell.GetSliceTags(self.user_plauth):
+ for tag in api.plshell.GetSliceTags(self.user_plauth, {'~tagname':Slicetag.ignore_tags}, Slicetag.filter_fields):
t = tag['slice_tag_id'], Slicetag(tag)
tmp.append(t)
return dict(tmp)
t = tag['slice_tag_id'], Slicetag(tag)
tmp.append(t)
return dict(tmp)