Lightweight BGP route server with TCP session management, route table, community-based filtering, management HTTP API, and SQLite peer store. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
13 lines
437 B
C#
13 lines
437 B
C#
namespace BGPLite.Routing;
|
|
|
|
public sealed class Route
|
|
{
|
|
public required uint Prefix { get; init; }
|
|
public required byte PrefixLength { get; init; }
|
|
public required uint NextHop { get; init; }
|
|
public uint[] AsPath { get; init; } = [];
|
|
public uint[] Communities { get; init; } = [];
|
|
public DateTime UpdatedAt { get; init; } = DateTime.UtcNow;
|
|
|
|
public (uint Prefix, byte Length) Key => (Prefix, PrefixLength);
|
|
}
|