fixed config

This commit is contained in:
Annika Hannig 2023-11-28 14:34:12 +01:00
parent 23e5539688
commit 35240d08c6
No known key found for this signature in database
GPG Key ID: 62E226E47DDCE58D
2 changed files with 5 additions and 8 deletions

View File

@ -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

View File

@ -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,