[management] Add routing peer counter (#3036)

This commit is contained in:
Pascal Fischer
2024-12-13 11:57:07 +01:00
committed by GitHub
parent 86352f00fc
commit e436c39a86
16 changed files with 344 additions and 88 deletions

View File

@@ -51,13 +51,14 @@ func NewNetworkResource(accountID, networkID, name, description, address string)
}, nil
}
func (n *NetworkResource) ToAPIResponse() *api.NetworkResource {
func (n *NetworkResource) ToAPIResponse(groups []api.GroupMinimum) *api.NetworkResource {
return &api.NetworkResource{
Id: n.ID,
Name: n.Name,
Description: &n.Description,
Type: api.NetworkResourceType(n.Type.String()),
Address: n.Address,
Groups: groups,
}
}