summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--gobgp/cmd/bmp.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/gobgp/cmd/bmp.go b/gobgp/cmd/bmp.go
index dfc0cd62..f7d26022 100644
--- a/gobgp/cmd/bmp.go
+++ b/gobgp/cmd/bmp.go
@@ -17,11 +17,12 @@ package cmd
import (
"fmt"
+ "net"
+ "strconv"
+
"github.com/osrg/gobgp/config"
"github.com/osrg/gobgp/packet/bmp"
"github.com/spf13/cobra"
- "net"
- "strconv"
)
func modBmpServer(cmdType string, args []string) error {
@@ -49,6 +50,7 @@ func modBmpServer(cmdType string, args []string) error {
policyType := config.BMP_ROUTE_MONITORING_POLICY_TYPE_PRE_POLICY
if len(args) > 1 {
switch args[1] {
+ case "pre":
case "post":
policyType = config.BMP_ROUTE_MONITORING_POLICY_TYPE_POST_POLICY
case "both":