예제 #1
0
 def init_parser(self, parser):
     parser.add_argument('-h', '--help', default=False, action='store_true',
             help="""print help message""")
     parser.add_argument('-c', '--config', default=None,
             # type=lambda x: load_para(x, Namespace),
             type=lambda x: load_para(x),
             help="""config""")
예제 #2
0
 def get_net_desc(self, topo_file, ns_file):
     new_net_settings_file = fix_fs_addr_prefix_bug(ns_file)
     net_settings = load_para(f_name=new_net_settings_file, encap=None)
     net_settings['topo'] = get_inet_adj_mat(topo_file)
     net_settings['node_type'] = 'NNode'
     net_settings['node_para'] = {}
     # net_settings['srv_list'] = net_settings['server_id_set']
     return net_settings