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

Commit

Permalink
Add clarifying documentation to AssignNative
Browse files Browse the repository at this point in the history
  • Loading branch information
gidoBOSSftw5731 authored Jul 4, 2022
1 parent 2edef8d commit 9dceb98
Showing 1 changed file with 2 additions and 0 deletions.
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

0 comments on commit 9dceb98

Please sign in to comment.