summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorchenhaiq@yunify.com <chenhaiq@yunify.com>2018-07-09 23:32:48 +0800
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-07-14 18:26:51 +0900
commit9c591a9f32d6cc0dd3230c82f720e8167ca0f7c9 (patch)
tree236efb41ff304d1fc52faa5e3ed166a4f951be7c
parent179824221b5fd135375c82c6291a2bcf1008902f (diff)
cmd: fix error when delete policy statement
Signed-off-by: Chen Haiquan <oc@yunify.com>
-rw-r--r--cmd/gobgp/cmd/policy.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/gobgp/cmd/policy.go b/cmd/gobgp/cmd/policy.go
index 7faa8648..6c50858f 100644
--- a/cmd/gobgp/cmd/policy.go
+++ b/cmd/gobgp/cmd/policy.go
@@ -610,7 +610,7 @@ func modStatement(op string, args []string) error {
case CMD_ADD:
err = client.AddStatement(stmt)
case CMD_DEL:
- err = client.DeleteStatement(stmt, false)
+ err = client.DeleteStatement(stmt, true)
default:
return fmt.Errorf("invalid operation: %s", op)
}