- Add `RefreshRoutesAsync` for route updates in `BgpSession`, improving route management and resilience. - Introduce dynamic peer subscriptions, custom prefixes, and RU-specific routes in `BgpSession`. - Enhance `PeerStore` with CRUD operations for peers, subscriptions, communities, and prefixes. - Implement `ISessionManager` in `BgpServer` for session-level operations. - Refactor API routes for extensibility; introduce scoped handlers for peers, ASN lists, routes, and prefixes. - Update database context to track new/loaded state and additional peer handling updates. - Improve logging and error handling across modules for better visibility and debugging.
24 lines
561 B
C#
24 lines
561 B
C#
using YamlDotNet.Serialization;
|
|
|
|
namespace BGPLite.Configuration;
|
|
|
|
public sealed class RipeStatConfig
|
|
{
|
|
[YamlMember(Alias = "AsnLists")]
|
|
public List<AsnList> AsnLists { get; init; } = [];
|
|
}
|
|
|
|
public sealed class AsnList
|
|
{
|
|
[YamlMember(Alias = "Name")]
|
|
public string Name { get; init; } = "";
|
|
|
|
[YamlMember(Alias = "Description")]
|
|
public string Description { get; init; } = "";
|
|
|
|
[YamlMember(Alias = "Asns")]
|
|
public List<uint> Asns { get; init; } = [];
|
|
|
|
[YamlMember(Alias = "Country")]
|
|
public string? Country { get; init; }
|
|
}
|