diff options
author | Eiichiro Watanabe <a16tochjp@gmail.com> | 2017-08-22 14:54:00 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-08-24 14:16:53 +0900 |
commit | cf60921e28c846ba8a6012f2cd25b3850798a831 (patch) | |
tree | b6f14dc34214872500efcb7f302ad967bece9ec5 | |
parent | f615fa49a768bb358e6318e64dc42e9a6af10681 (diff) |
gobgp: fix error for gobgp bmp add x.x.x.x:xxxx pre option
-rw-r--r-- | gobgp/cmd/bmp.go | 6 |
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": |