feat: enhance evobgp with new command-line tools for bundle management, including pull, verify, and apply functionalities. Update go.mod to include necessary dependencies and complete todos in architecture plan for improved observability and deployment practices.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package birdfmt
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestCountEstablishedBGPSessions(t *testing.T) {
|
||||
sample := `
|
||||
BIRD 2.14 ready.
|
||||
Name Proto Table State Since Info
|
||||
device1 Device --- up 10:00:00
|
||||
uplink4 BGP --- up 10:00:05 Established
|
||||
uplink6 BGP --- start 10:00:06 Active
|
||||
`
|
||||
if got := CountEstablishedBGPSessions(sample); got != 1 {
|
||||
t.Fatalf("got %d want 1", got)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user