summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@gmail.com>2021-05-06 07:58:00 +0900
committerFUJITA Tomonori <fujita.tomonori@gmail.com>2021-05-06 07:58:00 +0900
commit5fca0300b8daf0c63efc854688e8cdf6537f3646 (patch)
tree06aa4c1b7a000746845135444b626b98d6eac116
parentd1a8400dc69893920dc11a663c0e7d023d3559f2 (diff)
cmd/rpki: support delete api
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
-rw-r--r--cmd/gobgp/rpki.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/gobgp/rpki.go b/cmd/gobgp/rpki.go
index de6f16a2..b506ccef 100644
--- a/cmd/gobgp/rpki.go
+++ b/cmd/gobgp/rpki.go
@@ -171,6 +171,11 @@ func newRPKICmd() *cobra.Command {
_, err = client.DisableRpki(ctx, &api.DisableRpkiRequest{
Address: addr.String(),
})
+ case "delete":
+ _, err = client.DeleteRpki(ctx, &api.DeleteRpkiRequest{
+ Address: addr.String(),
+ Port: 323,
+ })
default:
exitWithError(fmt.Errorf("unknown operation: %s", args[1]))
}