summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--cmd/gobgp/neighbor.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/gobgp/neighbor.go b/cmd/gobgp/neighbor.go
index 9ebbff67..ae039904 100644
--- a/cmd/gobgp/neighbor.go
+++ b/cmd/gobgp/neighbor.go
@@ -1054,6 +1054,9 @@ func showNeighborPolicy(remoteIP, policyType string, indent int) error {
default:
return fmt.Errorf("invalid policy type: choose from (in|import|export)")
}
+ if remoteIP == "" {
+ remoteIP = globalRIBName
+ }
stream, err := client.ListPolicyAssignment(ctx, &api.ListPolicyAssignmentRequest{
Name: remoteIP,
Direction: dir,