summaryrefslogtreecommitdiffstats
path: root/Testcases/cfgm_common/ifmap/metadata.py
diff options
context:
space:
mode:
authorStuart Mackie <wsmackie@juniper.net>2017-03-23 06:26:16 -0700
committerStuart Mackie <wsmackie@juniper.net>2017-03-23 06:26:16 -0700
commitc29a525331b45ead15ec376d03f76836d622c943 (patch)
tree6713f16cb30c739a66a0cb56fb4e2efed732eff1 /Testcases/cfgm_common/ifmap/metadata.py
parent88df88a19674ccc0017836941b8ee32eaadf19fb (diff)
Removed test case files without correct license language. Will replace in future.
Change-Id: I16435a250257cf97a67a8ba31303c89d74204ac2 Signed-off-by: Stuart Mackie <wsmackie@juniper.net>
Diffstat (limited to 'Testcases/cfgm_common/ifmap/metadata.py')
-rw-r--r--Testcases/cfgm_common/ifmap/metadata.py36
1 files changed, 0 insertions, 36 deletions
diff --git a/Testcases/cfgm_common/ifmap/metadata.py b/Testcases/cfgm_common/ifmap/metadata.py
deleted file mode 100644
index 17f4515..0000000
--- a/Testcases/cfgm_common/ifmap/metadata.py
+++ /dev/null
@@ -1,36 +0,0 @@
-# Copyright 2011, Infoblox, All Rights Reserved
-#
-# Open Source, see LICENSE
-#
-from util import attr, link_ids
-
-class MetadataBase:
- """ foundation class for metadata factory """
- pass
-
-class Metadata(MetadataBase):
- """
- Metadata factory
- """
- __ns_uri = ''
-
- def __init__(self, name, value=None, attributes=None, ns_prefix=None, ns_uri=None, elements=''):
- self.__value = value
- self.__attributes = attributes
- self.__elements = elements
-
- if ns_prefix:
- self.__name = ns_prefix + ':' + name
- elif not ns_uri:
- self.__name = 'meta:' + name
-
- if ns_uri:
- if ns_prefix:
- self.__ns_uri = ' xmlns:' + ns_prefix + '="' + ns_uri + '"'
- else:
- self.__ns_uri = ' xmlns="' + ns_uri + '"'
-
- def __str__(self):
- __attr = ' '+ attr(self.__attributes)
- return '<metadata><' + self.__name + self.__ns_uri + __attr + '>' + self.__value + self.__elements + '</' + self.__name + '></metadata>'
-