From 5fca0300b8daf0c63efc854688e8cdf6537f3646 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Thu, 6 May 2021 07:58:00 +0900 Subject: cmd/rpki: support delete api Signed-off-by: FUJITA Tomonori --- cmd/gobgp/rpki.go | 5 +++++ 1 file changed, 5 insertions(+) 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])) } -- cgit v1.2.3