From a2ad911a9e61f225da9cc2ab644ff22a9ef25100 Mon Sep 17 00:00:00 2001 From: Andy Bavier Date: Fri, 5 Feb 2010 19:54:54 +0000 Subject: [PATCH 1/1] Only allow slice tags of type slice/rspec --- sfa/plc/network.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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) """ -- 2.43.0