-
Notifications
You must be signed in to change notification settings - Fork 133
Closed
Description
netns.New correctly states that it sets the returned handle as current, but netns.NewNamed tells that it just creates it, no mention of setting as current. While looking into the body of NewNamed, I saw New being called, so I assume this is a mistake in the documentation.
// New creates a new network namespace, sets it as current and returns
// a handle to it.
func New() (ns NsHandle, err error)
// NewNamed creates a new named network namespace and returns a handle to it
func NewNamed(name string) (NsHandle, error)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels