def fill_dcnm_net_info(self, tenant_id, direc, vlan_id=<NUM_LIT:0>,<EOL>segmentation_id=<NUM_LIT:0>):
serv_obj = self.get_service_obj(tenant_id)<EOL>fw_dict = serv_obj.get_fw_dict()<EOL>fw_id = fw_dict.get('<STR_LIT>')<EOL>net_dict = {'<STR_LIT:status>': '<STR_LIT>', '<STR_LIT>': True,<EOL>'<STR_LIT>': tenant_id, '<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': vlan_id, '<STR_LIT>': segmentation_id}<EOL>if vlan_id == <NUM_LIT:0>:<EOL><INDENT>net_dict.update({'<STR_LIT>': False, '<STR_LIT>': None})<EOL><DEDENT>else:<EOL><INDENT>net_dict.update({'<STR_LIT>': True})<EOL><DEDENT>if direc == '<STR_LIT>':<EOL><INDENT>name = fw_id[<NUM_LIT:0>:<NUM_LIT:4>] + fw_const.IN_SERVICE_NWK + (<EOL>fw_id[len(fw_id) - <NUM_LIT:4>:])<EOL>net_dict.update({'<STR_LIT:name>': name, '<STR_LIT>': None,<EOL>'<STR_LIT>': self.serv_host_prof,<EOL>'<STR_LIT>': self.serv_host_mode})<EOL><DEDENT>else:<EOL><INDENT>name = fw_id[<NUM_LIT:0>:<NUM_LIT:4>] + fw_const.OUT_SERVICE_NWK + (<EOL>fw_id[len(fw_id) - <NUM_LIT:4>:])<EOL>net_dict.update({'<STR_LIT:name>': name,<EOL>'<STR_LIT>': fw_const.SERV_PART_NAME,<EOL>'<STR_LIT>': self.serv_ext_prof,<EOL>'<STR_LIT>': self.serv_ext_mode})<EOL><DEDENT>return net_dict<EOL>
Fill DCNM network parameters.

        Function that fills the network parameters for a tenant required by
        DCNM.