fixed config
This commit is contained in:
parent
23e5539688
commit
35240d08c6
@ -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
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user