Beispiel #1
0
func RemoveTapFromBridge(bridge, tap string) error {
	if C.RemoveTapFromBridge(C.CString(bridge), C.CString(tap)) < 0 {
		return errors.New("Failed to remove tap from bridge")
	}
	return nil
}
Beispiel #2
0
func (t *TapManager) RemoveFromBridge(bridge string) error {
	if C.RemoveTapFromBridge(C.CString(bridge), C.CString(t.name)) != 0 {
		return errors.New("Failed to add tap to bridge")
	}
	return nil
}