update from RIFT as of 696b75d2fe9fb046261b08c616f1bcf6c0b54a9b second try
[osm/SO.git] / rwlaunchpad / ra / pytest / ns / restapitest / utils / utils.py
1
2 from .imports import * # noqa
3
4
5 def parse_cli():
6 """Parse command line options
7 """
8
9 parser = argparse.ArgumentParser()
10 parser.add_argument("--confd-host", help="confd IP",
11 dest='confd_host',
12 default='127.0.0.1')
13 args = parser.parse_args()
14
15 return args
16
17
18 def parse_input_data(file_name):
19 """
20 open the input file and make into a python Dict Obj
21 """
22
23 data = ''
24
25 with open(file_name, 'r') as ipf:
26 data = json.load(ipf)
27
28 return data