{"record":{"id":"bf1ab7c5b707c44c","repo":"netbirdio/netbird","slug":"is-exist-w","errorCode":null,"errorMessage":"is exist: %w","messagePattern":"is exist: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"client/iface/freebsd/link.go","lineNumber":55,"sourceCode":"\t}\n\n\ti, err := parseIfconfigOutput(out)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"parse ifconfig output: %w\", err)\n\t}\n\n\tif i.Name != name {\n\t\treturn nil, ErrNameDoesNotMatch\n\t}\n\n\treturn &Link{name: i.Name}, nil\n}\n\n// Recreate - create new interface, remove current before create if it exists\nfunc (l *Link) Recreate() error {\n\tok, err := l.isExist()\n\tif err != nil {\n\t\treturn fmt.Errorf(\"is exist: %w\", err)\n\t}\n\n\tif ok {\n\t\tif err := l.del(l.name); err != nil {\n\t\t\treturn fmt.Errorf(\"del: %w\", err)\n\t\t}\n\t}\n\n\treturn l.Add()\n}\n\n// Add creates a new network interface.\nfunc (l *Link) Add() error {\n\tparsedName, err := l.create(wgIFGroup)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"create link: %w\", err)\n\t}\n","sourceCodeStart":37,"sourceCodeEnd":73,"githubUrl":"https://github.com/netbirdio/netbird/blob/93e97f4bf1ad715072dcb3fb6cdb1763431b5a9c/client/iface/freebsd/link.go#L37-L73","documentation":"Error \"is exist: %w\" thrown in netbirdio/netbird.","triggerScenarios":"Thrown at client/iface/freebsd/link.go:55 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"93e97f4bf1ad715072dcb3fb6cdb1763431b5a9c","analyzedAt":"2026-08-16T03:09:19.136Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}