def update_dcnm_net_info(self, tenant_id, direc, vlan_id,<EOL>segmentation_id):
net_dict = self.retrieve_dcnm_net_info(tenant_id, direc)<EOL>if not net_dict:<EOL><INDENT>return None<EOL><DEDENT>net_dict['<STR_LIT>'] = vlan_id<EOL>if vlan_id != <NUM_LIT:0>:<EOL><INDENT>net_dict['<STR_LIT>'] = True<EOL><DEDENT>net_dict['<STR_LIT>'] = segmentation_id<EOL>return net_dict<EOL>
Update the DCNM net info with allocated values of seg/vlan.