diff options
author | Toshiki Tsuboi <t.tsubo2000@gmail.com> | 2015-10-11 06:36:07 +0900 |
---|---|---|
committer | Toshiki Tsuboi <t.tsubo2000@gmail.com> | 2015-10-11 06:36:07 +0900 |
commit | 7b350a733cd7e716c62d854016a2b4f5ad745de4 (patch) | |
tree | 4f62002de74c2ac5067104594131e31f19c7d11c | |
parent | e832aeaf9b2b942ff39c36c85b736b13531af36f (diff) |
cli: fix vrf add command
Correct mistakes of Export RT
-rw-r--r-- | docs/sources/cli-command-syntax.md | 2 | ||||
-rw-r--r-- | gobgp/cmd/vrf.go | 2 | ||||
-rw-r--r-- | server/server.go | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/docs/sources/cli-command-syntax.md b/docs/sources/cli-command-syntax.md index 43f3dd63..77e562b4 100644 --- a/docs/sources/cli-command-syntax.md +++ b/docs/sources/cli-command-syntax.md @@ -381,7 +381,7 @@ The following options can be specified in the policy subcommand: % gobgp vrf add vrf1 rd 10.100:100 rt both 10.100:100 import 10.100:101 export 10.100:102 % gobgp vrf Name RD Import RT Export RT - vrf1 10.100:100 10.100:100, 10.100:101 10.100:100, 10.100:101 + vrf1 10.100:100 10.100:100, 10.100:101 10.100:100, 10.100:102 % gobgp vrf del vrf1 % gobgp vrf Name RD Import RT Export RT diff --git a/gobgp/cmd/vrf.go b/gobgp/cmd/vrf.go index 0c5acb1a..d1863e03 100644 --- a/gobgp/cmd/vrf.go +++ b/gobgp/cmd/vrf.go @@ -133,7 +133,7 @@ func modVrf(typ string, args []string) error { case "import": importRt = append(importRt, buf) case "export": - exportRt = append(importRt, buf) + exportRt = append(exportRt, buf) case "both": importRt = append(importRt, buf) exportRt = append(exportRt, buf) diff --git a/server/server.go b/server/server.go index cc5349a8..c7e22475 100644 --- a/server/server.go +++ b/server/server.go @@ -1141,7 +1141,7 @@ func (server *BgpServer) handleVrfMod(arg *api.ModVrfArguments) ([]*table.Path, if err != nil { return nil, err } - exportRt, err := f(arg.Vrf.ImportRt) + exportRt, err := f(arg.Vrf.ExportRt) if err != nil { return nil, err } |