(item *metadbmodel.Subnet)
| 414 | } |
| 415 | |
| 416 | func (t *DataSet) AddSubnet(item *metadbmodel.Subnet) { |
| 417 | t.subnetLcuuidToID[item.Lcuuid] = item.ID |
| 418 | t.subnetIDToLcuuid[item.ID] = item.Lcuuid |
| 419 | t.GetLogFunc()(addToToolMap(ctrlrcommon.RESOURCE_TYPE_SUBNET_EN, item.Lcuuid), t.metadata.LogPrefixes) |
| 420 | } |
| 421 | |
| 422 | func (t *DataSet) DeleteSubnet(lcuuid string) { |
| 423 | id, _ := t.GetSubnetIDByLcuuid(lcuuid) |
no test coverage detected