File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,6 @@ func (n *NIC) netDeviceParseEthtool(ctx *context.Context, dev string) {
174
174
ctx .Warn (msg )
175
175
}
176
176
177
-
178
177
}
179
178
180
179
// netParseEthtoolFeature parses a line from the ethtool -k output and returns
@@ -264,24 +263,6 @@ func readFile(path string) string {
264
263
return strings .TrimSpace (string (contents ))
265
264
}
266
265
267
- func (nic * NIC ) setNicAttrEthtool (ctx * context.Context , dev string ) error {
268
- path , _ := exec .LookPath ("ethtool" )
269
- cmd := exec .Command (path , dev )
270
- var out bytes.Buffer
271
- cmd .Stdout = & out
272
- err := cmd .Run ()
273
- if err != nil {
274
- msg := fmt .Sprintf ("could not grab NIC link info for %s: %s" , dev , err )
275
- ctx .Warn (msg )
276
- return err
277
- }
278
-
279
- m := parseNicAttrEthtool (& out )
280
- nic .updateNicAttrEthtool (m )
281
-
282
- return nil
283
- }
284
-
285
266
func autoNegCap (m map [string ][]string ) * NICCapability {
286
267
autoNegotiation := NICCapability {Name : "auto-negotiation" , IsEnabled : false , CanEnable : false }
287
268
You can’t perform that action at this time.
0 commit comments