diff options
author | Stuart Mackie <wsmackie@juniper.net> | 2017-03-23 06:26:16 -0700 |
---|---|---|
committer | Stuart Mackie <wsmackie@juniper.net> | 2017-03-23 06:26:16 -0700 |
commit | c29a525331b45ead15ec376d03f76836d622c943 (patch) | |
tree | 6713f16cb30c739a66a0cb56fb4e2efed732eff1 /Testcases/cfgm_common/ifmap/util.py | |
parent | 88df88a19674ccc0017836941b8ee32eaadf19fb (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/util.py')
-rw-r--r-- | Testcases/cfgm_common/ifmap/util.py | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/Testcases/cfgm_common/ifmap/util.py b/Testcases/cfgm_common/ifmap/util.py deleted file mode 100644 index e4d06dd..0000000 --- a/Testcases/cfgm_common/ifmap/util.py +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/python -# -# Copyright 2011, Infoblox, All Rights Reserved -# -# Open Source, see LICENSE -# - -def attr(attributes): - """ - attr creates an XML string for any attribute that has a value - attr({'session-id': '2345', 'validation':'metadata'}) - """ - if attributes and (type(attributes) == type({})): # check if it is a dictionary - __xml = "" - for label, value in attributes.items(): - if value != None: - __xml += label + '="' + value + '" ' - return __xml - else: - return '' - -def link_ids(id1, id2): - """ - Takes two id arguments. - Returns XML for id1 or links id1 and id2 together - """ - if id1 and id2: # Both exist, so link them - #return '<link>' + id1 + id2 + '</link>' - return id1 + id2 - else: - return id1 - - - |