nvswitchmanager

package
v1.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

* SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. * SPDX-License-Identifier: Apache-2.0 * * 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

Constants

View Source
const (
	// ImplementationName is the name used to identify this implementation.
	ImplementationName = "nvswitchmanager"
)

Variables

This section is empty.

Functions

func Descriptor

func Descriptor() componentmanager.Descriptor

Descriptor returns the NV-Switch Manager NVLSwitch manager descriptor.

func Factory

Factory creates a new Manager from the provided providers. It retrieves the NVSwitchManager provider from the registry and uses its client.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager manages NVLink switch components via the NV-Switch Manager gRPC API.

func New

func New(nsmClient nsmapi.Client) *Manager

New creates a new NV-Switch Manager-based NVLSwitch Manager instance.

func (*Manager) FirmwareControl

func (m *Manager) FirmwareControl(ctx context.Context, target common.Target, info operations.FirmwareControlTaskInfo) error

FirmwareControl initiates firmware update without waiting for completion. Returns immediately after the update request is accepted.

func (*Manager) GetFirmwareStatus

func (m *Manager) GetFirmwareStatus(ctx context.Context, target common.Target) (map[string]operations.FirmwareUpdateStatus, error)

GetFirmwareStatus returns the current status of firmware updates for the target components. Returns a map of component ID (switch UUID) to FirmwareUpdateStatus.

func (*Manager) GetPowerStatus

func (m *Manager) GetPowerStatus(
	_ context.Context,
	_ common.Target,
) (map[string]operations.PowerStatus, error)

GetPowerStatus is not currently supported by NV-Switch Manager.

func (*Manager) InjectExpectation

func (m *Manager) InjectExpectation(
	_ context.Context,
	_ common.Target,
	_ operations.InjectExpectationTaskInfo,
) error

InjectExpectation injects expected configuration or state information for an NVLink switch.

func (*Manager) PowerControl

func (m *Manager) PowerControl(
	ctx context.Context,
	target common.Target,
	info operations.PowerControlTaskInfo,
) error

PowerControl performs power operations on NVLink switches via the NV-Switch Manager API.

func (*Manager) Type

func (m *Manager) Type() devicetypes.ComponentType

Type returns the component type this manager handles.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL