summaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@gmail.com>2019-01-27 21:43:49 +0900
committerFUJITA Tomonori <fujita.tomonori@gmail.com>2019-01-27 22:28:41 +0900
commit1f4a12d065161108b38145b373c925a6adf85fc1 (patch)
tree4e5bc01ad5a7790a52e79293a2eefeb9337ed195 /cmd
parent4660a6bf8854c045691de867d269f73f0adb8f24 (diff)
cmd/gobgp: remove in policy debris
$ gobgp n 10.0.255.1 p invalid policy type: choose from (in|import|export) The in policy was removed long ago. Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/gobgp/common.go1
-rw-r--r--cmd/gobgp/neighbor.go6
2 files changed, 3 insertions, 4 deletions
diff --git a/cmd/gobgp/common.go b/cmd/gobgp/common.go
index 066cc66c..a5dd99cb 100644
--- a/cmd/gobgp/common.go
+++ b/cmd/gobgp/common.go
@@ -59,7 +59,6 @@ const (
cmdExtcommunity = "ext-community"
cmdImport = "import"
cmdExport = "export"
- cmdIn = "in"
cmdMonitor = "monitor"
cmdMRT = "mrt"
cmdInject = "inject"
diff --git a/cmd/gobgp/neighbor.go b/cmd/gobgp/neighbor.go
index ae039904..106d53be 100644
--- a/cmd/gobgp/neighbor.go
+++ b/cmd/gobgp/neighbor.go
@@ -1052,7 +1052,7 @@ func showNeighborPolicy(remoteIP, policyType string, indent int) error {
case "export":
dir = api.PolicyDirection_EXPORT
default:
- return fmt.Errorf("invalid policy type: choose from (in|import|export)")
+ return fmt.Errorf("invalid policy type: choose from (import|export)")
}
if remoteIP == "" {
remoteIP = globalRIBName
@@ -1417,7 +1417,7 @@ func newNeighborCmd() *cobra.Command {
exitWithError(err)
}
remoteIP := peer.State.NeighborAddress
- for _, v := range []string{cmdIn, cmdImport, cmdExport} {
+ for _, v := range []string{cmdImport, cmdExport} {
if err := showNeighborPolicy(remoteIP, v, 4); err != nil {
exitWithError(err)
}
@@ -1425,7 +1425,7 @@ func newNeighborCmd() *cobra.Command {
},
}
- for _, v := range []string{cmdIn, cmdImport, cmdExport} {
+ for _, v := range []string{cmdImport, cmdExport} {
cmd := &cobra.Command{
Use: v,
Run: func(cmd *cobra.Command, args []string) {