MCPcopy
hub / github.com/vishvananda/netlink / LinkAdd

Function LinkAdd

link_linux.go:1373–1375  ·  view source on GitHub ↗

LinkAdd adds a new link device. The type and features of the device are taken from the parameters in the link object. Equivalent to: `ip link add $link`

(link Link)

Source from the content-addressed store, hash-verified

1371// are taken from the parameters in the link object.
1372// Equivalent to: `ip link add $link`
1373func LinkAdd(link Link) error {
1374 return pkgHandle.LinkAdd(link)
1375}
1376
1377// LinkAdd adds a new link device. The type and features of the device
1378// are taken from the parameters in the link object.

Callers 15

TestChainAddDelFunction · 0.70
TestRoute6AddDelFunction · 0.70
TestRouteOifOptionFunction · 0.70
TestRouteUIDOptionFunction · 0.70
TestRouteFWMarkOptionFunction · 0.70
TestNeighAddDelLLIPAddrFunction · 0.70
TestNeighAddDelFunction · 0.70
TestNeighAddDelProxyFunction · 0.70
TestNeighSubscribeFunction · 0.70

Calls 1

LinkAddMethod · 0.45

Tested by 15

TestChainAddDelFunction · 0.56
TestRoute6AddDelFunction · 0.56
TestRouteOifOptionFunction · 0.56
TestRouteUIDOptionFunction · 0.56
TestRouteFWMarkOptionFunction · 0.56
TestNeighAddDelLLIPAddrFunction · 0.56
TestNeighAddDelFunction · 0.56
TestNeighAddDelProxyFunction · 0.56
TestNeighSubscribeFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…