BGPLite/BGPLite.Routing/Route.cs
Mikhail Movchan 9a6c0af00b feat: initial commit — BGPLite BGP route server
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>
2026-06-05 19:30:18 +03:00

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);
}