Documentation ¶
Overview ¶
Package ocutil contains helper functions related to OpenConfig models.
Index ¶
- func FindAPConfig(apConfigs *ocstruct.Device, hostname string) *ocstruct.OpenconfigAccessPoints_AccessPoints_AccessPoint
- func RadiusServers(ap *ocstruct.OpenconfigAccessPoints_AccessPoints_AccessPoint) ...
- func VLANChanged(existingVLANIDs, updatedVLANIDs []int) bool
- func VLANIDs(apConfig *ocstruct.OpenconfigAccessPoints_AccessPoints_AccessPoint) []int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindAPConfig ¶
func FindAPConfig(apConfigs *ocstruct.Device, hostname string) *ocstruct.OpenconfigAccessPoints_AccessPoints_AccessPoint
FindAPConfig finds the configuration of the AP with a specific hostname. It returns nil if not matching AP found.
func RadiusServers ¶
func RadiusServers(ap *ocstruct.OpenconfigAccessPoints_AccessPoints_AccessPoint) map[string]*ocstruct.OpenconfigAccessPoints_AccessPoints_AccessPoint_System_Aaa_ServerGroups_ServerGroup_Servers_Server
RadiusServers fetches the radius server assigned to the given AP. It returns a SSID -> RadiusServer map.
func VLANChanged ¶
VLANChanged checkes whether there is any difference between the given two VLAN ID lists.
func VLANIDs ¶
func VLANIDs(apConfig *ocstruct.OpenconfigAccessPoints_AccessPoints_AccessPoint) []int
VLANIDs fetches the ID of all VLANs appears in the given office configuration.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.