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>
21 lines
521 B
C#
21 lines
521 B
C#
using System.Net;
|
|
using YamlDotNet.Serialization;
|
|
|
|
namespace BGPLite.Configuration;
|
|
|
|
public sealed class BgpConfig
|
|
{
|
|
[YamlMember(Alias = "Asn")]
|
|
public uint Asn { get; init; }
|
|
|
|
[YamlMember(Alias = "RouterId")]
|
|
public string RouterId { get; init; } = "0.0.0.0";
|
|
|
|
[YamlMember(Alias = "KeepAlive")]
|
|
public int KeepAlive { get; init; } = 60;
|
|
|
|
[YamlMember(Alias = "HoldTime")]
|
|
public int HoldTime { get; init; } = 180;
|
|
|
|
public IPAddress GetRouterIdAddress() => IPAddress.Parse(RouterId);
|
|
}
|