def args2body(self, parsed_args, body=None):
if body is None:<EOL><INDENT>body = {}<EOL><DEDENT>if parsed_args.dpd:<EOL><INDENT>vpn_utils.validate_dpd_dict(parsed_args.dpd)<EOL>body['<STR_LIT>'] = parsed_args.dpd<EOL><DEDENT>if parsed_args.local_ep_group:<EOL><INDENT>_local_epg = neutronv20.find_resourceid_by_name_or_id(<EOL>self.get_client(), '<STR_LIT>',<EOL>parsed_args.local_ep_group)<EOL>body['<STR_LIT>'] = _local_epg<EOL><DEDENT>if parsed_args.peer_ep_group:<EOL><INDENT>_peer_epg = neutronv20.find_resourceid_by_name_or_id(<EOL>self.get_client(), '<STR_LIT>',<EOL>parsed_args.peer_ep_group)<EOL>body['<STR_LIT>'] = _peer_epg<EOL><DEDENT>return {self.resource: body}<EOL>
Add in conditional args and then return all conn info.