-
Notifications
You must be signed in to change notification settings - Fork 617
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable BGP functionality on Windows since gobgp does not support thi…
…s. (#919) Update README
- Loading branch information
1 parent
4ed0d1a
commit cbf3133
Showing
5 changed files
with
35 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
//go:build !windows | ||
// +build !windows | ||
|
||
package bgp | ||
|
||
import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// +build !windows | ||
|
||
package bgp | ||
|
||
import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package bgp | ||
|
||
import ( | ||
"errors" | ||
"github.com/fabiolb/fabio/config" | ||
) | ||
|
||
type BGPHandler struct{} | ||
|
||
var ErrNoWindows = errors.New("cannot run bgp on windows") | ||
|
||
func NewBGPHandler(config *config.BGP) (*BGPHandler, error) { | ||
return nil, ErrNoWindows | ||
} | ||
|
||
func (bgph *BGPHandler) Start() error { | ||
return ErrNoWindows | ||
} | ||
|
||
func ValidateConfig(config *config.BGP) error { | ||
return ErrNoWindows | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters