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

Method AddSubnets

server/controller/recorder/cache/cache.go:626–631  ·  view source on GitHub ↗
(items []*metadbmodel.Subnet)

Source from the content-addressed store, hash-verified

624}
625
626func (c *Cache) AddSubnets(items []*metadbmodel.Subnet) {
627 for _, item := range items {
628 c.DiffBaseDataSet.AddSubnet(item, c.Sequence)
629 c.ToolDataSet.AddSubnet(item)
630 }
631}
632
633func (c *Cache) DeleteSubnets(lcuuids []string) {
634 for _, lcuuid := range lcuuids {

Callers 2

refreshSubnetsMethod · 0.95
OnUpdaterAddedMethod · 0.80

Calls 1

AddSubnetMethod · 0.45

Tested by

no test coverage detected