Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

Add clarifying documentation to AssignNative #342

Merged
merged 1 commit into from
Sep 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ports.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ func (i *PortServiceOp) Assign(portID, vlanID string) (*Port, *Response, error)
}

// AssignNative assigns a virtual network to the port as a "native VLAN"
// The VLAN being assigned MUST first be added as a vlan using Assign() before
// you may assign it as the native VLAN
func (i *PortServiceOp) AssignNative(portID, vlanID string) (*Port, *Response, error) {
if validateErr := ValidateUUID(portID); validateErr != nil {
return nil, nil, validateErr
Expand Down