File: config_freebsd.go

package info (click to toggle)
golang-github-containers-common 0.62.2%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,436 kB
  • sloc: makefile: 131; sh: 102
file content (16 lines) | stat: -rw-r--r-- 357 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//go:build (linux || freebsd) && cni

package cni

import (
	"os/exec"

	"github.com/sirupsen/logrus"
)

func deleteLink(name string) {
	if output, err := exec.Command("ifconfig", name, "destroy").CombinedOutput(); err != nil {
		// only log the error, it is not fatal
		logrus.Infof("Failed to remove network interface %s: %v: %s", name, err, output)
	}
}