(item *metadbmodel.Network)
| 385 | } |
| 386 | |
| 387 | func (t *DataSet) AddNetwork(item *metadbmodel.Network) { |
| 388 | t.networkLcuuidToID[item.Lcuuid] = item.ID |
| 389 | t.networkIDToLcuuid[item.ID] = item.Lcuuid |
| 390 | t.networkIDToName[item.ID] = item.Name |
| 391 | t.networkIDToVPCID[item.ID] = item.VPCID |
| 392 | t.GetLogFunc()(addToToolMap(ctrlrcommon.RESOURCE_TYPE_NETWORK_EN, item.Lcuuid), t.metadata.LogPrefixes) |
| 393 | } |
| 394 | |
| 395 | func (t *DataSet) UpdateNetwork(cloudItem *cloudmodel.Network) { |
| 396 | id, exists := t.GetNetworkIDByLcuuid(cloudItem.Lcuuid) |
no test coverage detected