diff options
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/gobgp/common.go | 1 | ||||
-rw-r--r-- | cmd/gobgp/neighbor.go | 6 |
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) { |