3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
20 def get_own_hwmgmt_ip():
24 def flatten_config_data(jsondata):
26 for key, value in jsondata.iteritems():
28 result[key] = json.dumps(value)
29 except Exception as exp:
34 def unflatten_config_data(props):
36 for name, value in props.iteritems():
38 propsjson[name] = json.loads(value)
39 except Exception as exp:
40 propsjson[name] = value