From: Andy Bavier Date: Fri, 5 Feb 2010 19:54:54 +0000 (+0000) Subject: Only allow slice tags of type slice/rspec X-Git-Tag: sfa-0.9-11~150 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=a2ad911a9e61f225da9cc2ab644ff22a9ef25100;hp=2913d62957e486e1c27373a3498655d3775990b2;p=sfa.git Only allow slice tags of type slice/rspec --- diff --git a/sfa/plc/network.py b/sfa/plc/network.py index 498a0a7b..95344bf4 100644 --- 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'] - if self.tagname in ['codemux', 'vsys']: + if self.tagname in ['codemux', 'ip_addresses', 'vsys']: 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): - t = tag['tagname'], TagType(tag) - tmp.append(t) + if tag['category'] == 'slice/rspec': + t = tag['tagname'], TagType(tag) + tmp.append(t) return dict(tmp) """