Skip to content

Commit

Permalink
Merge pull request #31 from kpetremann/fixes
Browse files Browse the repository at this point in the history
Fixes
  • Loading branch information
kpetremann authored Feb 20, 2024
2 parents 5410581 + f292db6 commit 1888d51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion internal/convertor/device/device.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"github.com/criteo/data-aggregation-api/internal/model/dcim"
"github.com/criteo/data-aggregation-api/internal/model/openconfig"
"github.com/openconfig/ygot/ygot"
"github.com/rs/zerolog/log"
)

const AFKEnabledTag = "afk-enabled"
Expand Down Expand Up @@ -73,7 +74,7 @@ func NewDevice(dcimInfo *dcim.NetworkDevice, devicesData *repository.AssetsPerDe

device.PeerGroups, ok = devicesData.PeerGroups[dcimInfo.Hostname]
if !ok {
return nil, fmt.Errorf("no peer-groups found for %s", dcimInfo.Hostname)
log.Warn().Msgf("no peer-groups found for %s", dcimInfo.Hostname)
}

device.PrefixLists, ok = devicesData.PrefixLists[dcimInfo.Hostname]
Expand Down
2 changes: 1 addition & 1 deletion internal/model/cmdb/bgp/global.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ type BGPGlobal struct {
GracefulRestartTime *uint16 `json:"graceful_restart_time" validate:"omitempty"`
EcmpEnabled *bool `json:"ecmp" validate:"required"`
EcmpMaximumPaths *uint32 `json:"ecmp_maximum_paths" validate:"omitempty"`
RouterID string `json:"router_id" validate:"required"`
RouterID string `json:"router_id" validate:"omitempty"`
}

0 comments on commit 1888d51

Please sign in to comment.