- def _parse_network(self, network_str):
- '''
- parse the options for all network interfaces of the vnf
- :param network_str: (id=x,ip=x.x.x.x/x), ...
- :return: list of dicts [{"id":x,"ip":"x.x.x.x/x"}, ...]
- '''
- nw_list = list()
- networks = network_str[1:-1].split('),(')
- for nw in networks:
- nw_dict = dict(tuple(e.split('=')) for e in nw.split(','))
- nw_list.append(nw_dict)
-
- return nw_list
-
-
-parser = argparse.ArgumentParser(description='son-emu datacenter')
+parser = argparse.ArgumentParser(description="""son-emu compute
+
+ Examples:
+ - son-emu-cli compute start -d dc2 -n client -i sonatanfv/sonata-iperf3-vnf
+ - son-emu-cli list
+ - son-emu-cli compute status -d dc2 -n client
+ """, formatter_class=argparse.RawTextHelpFormatter)