-
Notifications
You must be signed in to change notification settings - Fork 173
Closed
Description
Unlike all other AddX
methods such as AddInternalInterface
, AddExternalInterface
, and AddNeighborIA
, the method AddLinkType
does not acquire the DataPlane
mutex and does not return modifyExisting
if it is already running. Is this something that was overlooked?
Lines 241 to 250 in 780bf4c
func (d *DataPlane) AddLinkType(ifID uint16, linkTo topology.LinkType) error { | |
if _, exists := d.linkTypes[ifID]; exists { | |
return serrors.WithCtx(alreadySet, "ifID", ifID) | |
} | |
if d.linkTypes == nil { | |
d.linkTypes = make(map[uint16]topology.LinkType) | |
} | |
d.linkTypes[ifID] = linkTo | |
return nil | |
} |
Metadata
Metadata
Assignees
Labels
No labels