MCPcopy
hub / github.com/lxc/incus / Add

Method Add

internal/server/ip/link_dummy.go:13–22  ·  view source on GitHub ↗

Add adds new virtual link.

()

Source from the content-addressed store, hash-verified

11
12// Add adds new virtual link.
13func (d *Dummy) Add() error {
14 attrs, err := d.netlinkAttrs()
15 if err != nil {
16 return err
17 }
18
19 return d.addLink(&netlink.Dummy{
20 LinkAttrs: attrs,
21 })
22}

Callers 1

setupMethod · 0.95

Calls 2

addLinkMethod · 0.80
netlinkAttrsMethod · 0.45

Tested by

no test coverage detected