MCPcopy Create free account
hub / github.com/deepflowio/deepflow / AddNetwork

Method AddNetwork

server/controller/recorder/cache/tool/data_set.go:387–393  ·  view source on GitHub ↗
(item *metadbmodel.Network)

Source from the content-addressed store, hash-verified

385}
386
387func (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
395func (t *DataSet) UpdateNetwork(cloudItem *cloudmodel.Network) {
396 id, exists := t.GetNetworkIDByLcuuid(cloudItem.Lcuuid)

Callers 4

GetNetworkIDByLcuuidMethod · 0.95
GetNetworkLcuuidByIDMethod · 0.95
GetNetworkVPCIDByIDMethod · 0.95
GetNetworkNameByIDMethod · 0.95

Calls 2

addToToolMapFunction · 0.85
GetLogFuncMethod · 0.45

Tested by

no test coverage detected