master
go 20 lines 363 Bytes
Raw
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 package ethtool
4
5 import (
6 "errors"
7 )
8
9 func (c *Collector) validateConfig() error {
10 if c.OpticInterfaces == "" {
11 return errors.New("no optic interfaces specified")
12 }
13 return nil
14 }
15
16 func (c *Collector) initEthtoolCli() (ethtoolCli, error) {
17 et := newEthtoolExec(c.Timeout.Duration(), c.Logger)
18
19 return et, nil
20 }