Documentation
¶
Index ¶
- Constants
- func NewFrrApplier(log *slog.Logger, tplPath string) *templates.Applier
- type PortInfo
- type Sonic
- func (s *Sonic) Apply(ctx context.Context, cfg *types.Conf) error
- func (s *Sonic) GetManagement() (ip, user string, err error)
- func (s *Sonic) GetNics(ctx context.Context, log *slog.Logger, blacklist []string) (nics []*models.V1SwitchNic, err error)
- func (s *Sonic) GetOS() (*models.V1SwitchOS, error)
- func (s *Sonic) GetSwitchPorts(ctx context.Context) ([]*net.Interface, error)
- func (s *Sonic) IsInitialized(ctx context.Context) (initialized bool, err error)
- func (s *Sonic) SanitizeConfig(cfg *types.Conf)
Constants ¶
View Source
const (
SonicVersionFile = "/etc/sonic/sonic_version.yml"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Sonic ¶
type Sonic struct {
// contains filtered or unexported fields
}
func (*Sonic) GetManagement ¶
func (*Sonic) GetSwitchPorts ¶
func (*Sonic) IsInitialized ¶
func (*Sonic) SanitizeConfig ¶
Click to show internal directories.
Click to hide internal directories.