Documentation
¶
Overview ¶
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2025 Ravi Pina <ravi@pina.org>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Variables
- func EnsureDeviceConfigsForSite(ctx context.Context, apiLabel, siteName, deviceType string, macs []string) (int, error)
- func Execute()
- func FormatAPINotFoundError(requestedAPI string) error
- func GetAPIRegistry() *vendors.APIClientRegistry
- func GetBuildTime() string
- func GetCacheManager() *vendors.CacheManager
- func GetGitCommit() string
- func GetTargetAPIs() []string
- func GetVersion() string
- func InitializeMultiVendor() error
- func IsMultiVendorApplySupported(apiLabel string) (bool, string)
- func RefreshAPICacheForApply(ctx context.Context, apiLabel string) error
- func ResolveAPIForSite(siteName string, siteConfig *config.SiteConfig) (string, error)
- func SetAPITarget(target string)
- func ValidateAPIFlag() error
- func ValidateMultiVendorApply(_ context.Context, siteName string, siteConfig *config.SiteConfig) (string, error)
- type APDefaults
- type DeviceProfilesConfig
- type DeviceProfilesConfigContent
- type DeviceProfilesMap
- type DevicesConfig
- type ImportScope
- type SiteConfigData
- type SiteExportConfig
- type SiteExportConfigData
Constants ¶
This section is empty.
Variables ¶
var ( Version = "dev" // Set to git tag or version during build BuildTime = "unknown" // Set to build timestamp during build GitCommit = "unknown" // Set to git commit hash during build )
Build-time variables (set via ldflags)
Functions ¶
func EnsureDeviceConfigsForSite ¶
func EnsureDeviceConfigsForSite(ctx context.Context, apiLabel, siteName, deviceType string, macs []string) (int, error)
EnsureDeviceConfigsForSite fetches configs for all devices in a site that will be modified. This is used to batch-fetch configs before applying changes to multiple devices. For Meraki, this fetches configs on-demand. For Mist, configs are already cached.
Parameters:
- ctx: Context for the API calls
- apiLabel: The API label
- siteName: Site name to find devices
- deviceType: "ap", "switch", "gateway", or "all"
- macs: List of device MACs that will be modified (empty = all in site)
Returns the number of configs fetched from the API.
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func FormatAPINotFoundError ¶
FormatAPINotFoundError creates a helpful error message when an API is not found.
func GetAPIRegistry ¶
func GetAPIRegistry() *vendors.APIClientRegistry
GetAPIRegistry returns the global API registry.
func GetCacheManager ¶
func GetCacheManager() *vendors.CacheManager
GetCacheManager returns the global cache manager.
func GetTargetAPIs ¶
func GetTargetAPIs() []string
GetTargetAPIs returns the API labels to target based on target positional arg or --api flag. If target/--api is set, returns only that API. Otherwise returns all APIs.
func InitializeMultiVendor ¶
func InitializeMultiVendor() error
InitializeMultiVendor initializes the multi-vendor infrastructure. This should be called after Viper config is loaded.
func IsMultiVendorApplySupported ¶
IsMultiVendorApplySupported checks if the apply operation is supported for the target API's vendor.
func RefreshAPICacheForApply ¶
RefreshAPICacheForApply refreshes the cache for the specified API before apply operations. This ensures we have the latest running config to compare against.
func ResolveAPIForSite ¶
func ResolveAPIForSite(siteName string, siteConfig *config.SiteConfig) (string, error)
ResolveAPIForSite determines which API to use for a site based on: 1. --api flag override (with warning if different from config) 2. Site config's api field 3. Cache lookup to find which API has this site 4. Default to first available API if only one is configured
func SetAPITarget ¶
func SetAPITarget(target string)
SetAPITarget sets the API target from a positional argument. This should be called from command handlers before ValidateAPIFlag/GetTargetAPIs.
func ValidateAPIFlag ¶
func ValidateAPIFlag() error
ValidateAPIFlag validates the --api flag value against registered APIs.
func ValidateMultiVendorApply ¶
func ValidateMultiVendorApply(_ context.Context, siteName string, siteConfig *config.SiteConfig) (string, error)
ValidateMultiVendorApply checks if an apply operation is valid. Returns the resolved API label and any validation error.
Types ¶
type APDefaults ¶
type APDefaults struct {
Band24 struct {
Bandwidth int `json:"bandwidth" mapstructure:"bandwidth"`
} `json:"band_24" mapstructure:"band_24"`
Band5 struct {
Bandwidth int `json:"bandwidth" mapstructure:"bandwidth"`
} `json:"band_5" mapstructure:"band_5"`
Band6 struct {
Bandwidth int `json:"bandwidth" mapstructure:"bandwidth"`
} `json:"band_6" mapstructure:"band_6"`
}
APDefaults represents the defaults configuration for APs
type DeviceProfilesConfig ¶
type DeviceProfilesConfig struct {
Version int `json:"version"`
Config DeviceProfilesConfigContent `json:"config"`
}
DeviceProfilesConfig represents the structure of device profiles configuration
type DeviceProfilesConfigContent ¶
type DeviceProfilesConfigContent struct {
DeviceProfiles DeviceProfilesMap `json:"device_profiles"`
}
type DeviceProfilesMap ¶
type DevicesConfig ¶
type DevicesConfig struct {
AP map[string]map[string]any `json:"ap,omitempty"`
Switch map[string]map[string]any `json:"switch,omitempty"`
Gateway map[string]map[string]any `json:"gateway,omitempty"`
}
DevicesConfig holds device configurations by type
type ImportScope ¶
type ImportScope string
ImportScope defines what data to import
const ( ScopeFull ImportScope = "full" ScopeWLANs ImportScope = "wlans" ScopeProfiles ImportScope = "profiles" ScopeAP ImportScope = "ap" ScopeSwitch ImportScope = "switch" ScopeGateway ImportScope = "gateway" )
type SiteConfigData ¶
type SiteConfigData struct {
API string `json:"api,omitempty"`
SiteConfig map[string]any `json:"site_config"`
Devices *DevicesConfig `json:"devices,omitempty"`
WLANs []map[string]any `json:"wlans,omitempty"`
Profiles []map[string]any `json:"profiles,omitempty"`
}
SiteConfigData represents the configuration data for a single site
type SiteExportConfig ¶
type SiteExportConfig struct {
Version int `json:"version"`
Config SiteExportConfigData `json:"config"`
}
SiteExportConfig represents the exported site configuration structure
type SiteExportConfigData ¶
type SiteExportConfigData struct {
Sites map[string]*SiteConfigData `json:"sites"`
}
SiteExportConfigData wraps the sites map
Source Files
¶
- ap.go
- api.go
- api_ap.go
- api_config.go
- api_device_profiles.go
- api_gateway.go
- api_rf_profiles.go
- api_site.go
- api_switch.go
- api_wlans.go
- apply.go
- apply_backup.go
- apply_device_profile.go
- apply_site.go
- backup.go
- check.go
- check_compatibility.go
- export.go
- export_netbox.go
- import.go
- import_api.go
- import_api_site.go
- import_pdf.go
- init.go
- intent.go
- intent_ap.go
- intent_gateway.go
- intent_profiles.go
- intent_site.go
- intent_switch.go
- inventory.go
- lint.go
- lint_config.go
- multivendor.go
- multivendor_apply.go
- multivendor_errors.go
- multivendor_search.go
- multivendor_show.go
- refresh.go
- refresh_cache.go
- root.go
- search.go
- set.go
- show.go
- show_api_status.go
- show_config.go
- show_fields.go
- site.go
- version.go
- wired.go
- wireless.go