diff --git a/pkg/api/response.go b/pkg/api/response.go index 642a44e..63c098f 100644 --- a/pkg/api/response.go +++ b/pkg/api/response.go @@ -27,8 +27,6 @@ type CacheableResponse interface { // ConfigResponse is a response with client runtime configuration type ConfigResponse struct { - Asn int `json:"asn"` - RejectReasons map[string]interface{} `json:"reject_reasons"` Noexport Noexport `json:"noexport"` @@ -66,11 +64,11 @@ type RejectCandidates struct { // Rpki is the validation status of a prefix type Rpki struct { - Enabled bool `json:"enabled"` - Valid []string `json:"valid"` - Unknown []string `json:"unknown"` - NotChecked []string `json:"not_checked"` - Invalid []string `json:"invalid"` + Enabled bool `json:"enabled"` + Valid [][]string `json:"valid"` + Unknown [][]string `json:"unknown"` + NotChecked [][]string `json:"not_checked"` + Invalid [][]string `json:"invalid"` } // Meta contains response meta information diff --git a/pkg/http/api_endpoints_meta.go b/pkg/http/api_endpoints_meta.go index 397f15a..e3558a1 100644 --- a/pkg/http/api_endpoints_meta.go +++ b/pkg/http/api_endpoints_meta.go @@ -27,7 +27,6 @@ func (s *Server) apiConfigShow( _params httprouter.Params, ) (response, error) { result := api.ConfigResponse{ - Asn: s.cfg.Server.Asn, BGPCommunities: s.cfg.UI.BGPCommunities, BGPBlackholeCommunities: s.cfg.UI.BGPBlackholeCommunities, RejectReasons: s.cfg.UI.RoutesRejections.Reasons,