code: def fill_dcnm_net_info(self, tenant_id, direc, vlan_id=0,
                             segmentation_id=0):
          
          serv_obj = self.get_service_obj(tenant_id)
          fw_dict = serv_obj.get_fw_dict()
          fw_id = fw_dict.get('fw_id')
          net_dict = {'status': 'ACTIVE', 'admin_state_up': True,
                      'tenant_id': tenant_id, 'provider:network_type': 'local',
                      'vlan_id': vlan_id, 'segmentation_id': segmentation_id}
          if vlan_id == 0:
              net_dict.update({'mob_domain': False, 'mob_domain_name': None})
          else:
              net_dict.update({'mob_domain': True})
          # TODO(padkrish) NWK ID are not filled.
          if direc == 'in':
              name = fw_id[0:4] + fw_const.IN_SERVICE_NWK + (
                  fw_id[len(fw_id) - 4:])
              net_dict.update({'name': name, 'part_name': None,
                               'config_profile': self.serv_host_prof,
                               'fwd_mode': self.serv_host_mode})
          else:
              name = fw_id[0:4] + fw_const.OUT_SERVICE_NWK + (
                  fw_id[len(fw_id) - 4:])
              net_dict.update({'name': name,
                               'part_name': fw_const.SERV_PART_NAME,
                               'config_profile': self.serv_ext_prof,
                               'fwd_mode': self.serv_ext_mode})
          return net_dict
docs: Fill DCNM network parameters.
  
          Function that fills the network parameters for a tenant required by
          DCNM.